# Forward some ports
echo "Forwarding port 99 to 10.0.0.8:80"
$IPT -t nat -A PREROUTING -p tcp -m tcp --dport 99 -j DNAT
--to-destination 10.0.0.8:80
Oh $CURSE. Forgot the FORWARD rule:
$IPT -A FORWARD -p tcp -d 10.0.0.8 --dport 80 -j ACCEPT
Now it works, and I'm a happy bunny once more. I would appreciate some
constructive criticism relating to my iptables script though - possible
security/style improvements, etc.
Spotted that on <http://www.hackorama.com/network/portfwd.shtml>. Found on the
second page of results from a Google search for 'iptables DNAT port-forward'.
Thanks.
--
Phil. | (\_/) This is Bunny. Copy and paste Bunny
usenet06@xxxxxxxxxxxxx | (='.'=) into your signature to help him gain
http://www.philpem.me.uk/ | (")_(") world domination.
If mail bounces, replace "06" with the last two digits of the current year.