G'day all.
Having massive problems with IPTABLES. Wish to pass traffic coming from the net to our web server on the private LAN.
ETH0=203.34.217.21
ETH1=192.168.1.21
www=192.168.1.30
Using mandrake 8.1, I tried the following to get it working in its most simple form.
iptables -t nat -A PREROUTING -i eth0 -p tcp -d 203.34.217.21 --dport 80 -j DNAT --to 192.168.1.30:80
iptables -A FORWARD -i eth0 -o eth1 -p tcp -d 192.168.1.30 --dport 80 -j accept
iptables-t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j SNAT --to-source 203.34.217.21
Also made sure I had ip_forward set to "1"
Packets are not making it out the internal interface...
Can any one help ?
Thanks all
John
jbrandis@entellect.com.au