[ubuntu] iptables port forwardin

view story

http://ubuntuforums.org – I'm having problems setting up port forwarding for PPTP on a Linux machine to a W2003 VP-server. On linux machine i have eth0 with static ip and internet acces and eth1 for Lan I'm running Ubuntu 10.4 with a 2.6.32 Kernel with this nat setting: -A POSTROUTING -s -j SNAT --to-source $StaticIP My setup to forwading trafic for port 1723 to deseire ip is: -A PREROUTING -i eth0 -p tcp --dport 1723 -j DNAT --to -A PREROUTING -i eth0 -p 47 -j DNAT --to -A FORWARD -i eth0 -o eth1 -p tcp --dport 1723 -j ACCEPT -A FORWARD -i eth0 -o eth1 -p 47 -j ACCEPT (Hardware)