Please help me to configure the gShield based firewall to allow active
connection
to Direct Connect network, DC++.
One of the FAQs I was able to find recommends iptables settings
bellow. How could these settings be cleanely done with gShield
config files:
Linux 2.4, postrouting example
iptables -t nat -A POSTROUTING -d 192.168.0.2 -s 192.168.0.0/24 -p
tcp --dport 555 -j SNAT --to 192.168.10.1
iptables -t nat -A POSTROUTING -d 192.168.0.2 -s 192.168.0.0/24 -p
udp --dport 555 -j SNAT --to 192.168.10.1
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 555 -j DNAT
--to 192.168.10.2:555
iptables -t nat -A PREROUTING -i eth1 -p udp --dport 555 -j DNAT
--to 192.168.10.2:555
iptables -t nat -A PREROUTING -d 213.112.8.55 -p tcp --dport 555
-j DNAT --to 192.168.10.2:555
iptables -t nat -A PREROUTING -d 213.112.8.55 -p udp --dport 555
-j DNAT --to 192.168.10.2:555
Linux 2.4, prerouting example
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 555 -j DNAT
--to 192.168.0.2:555
iptables -t nat -A PREROUTING -i eth1 -p udp --dport 555 -j DNAT
--to 192.168.0.2:555
|