Hereward Cooper wrote:
Hi,
Could someone please tell me why this command won't forward any www calls to 
192.168.1.1 (firewall + gateway) to 192.168.1.2 (apache server).

iptables -t nat -A PREROUTING -p TCP --dport 80 -j DNAT --to-destination 
192.168.1.2:80


What I can't figure is why that doesn't work, when the following command does 
work to forward all external ssh requests from the gateway, to the apache 
machine.

iptables -t nat -A PREROUTING -p TCP -i ippp0 --dport 22 -j DNAT 
--to-destination 192.168.1.2:22


is "-i ippp0" really missing from the first one or is that just a typo?

Reply via email to