ee99ee2
01-31-2003, 11:20 AM
I've got a router on my network that faces outside running iptables. I've got a PPTP server on 192.168.1.6 on port 1723. I want the router to accept connections on eth2 (thats the external interface) on port 21 and forward it to 192.168.1.6 on port 1723. Is this possable? 192.168.1.6 is connected to eth1.
I tried this, but it didn't work:
iptables -t nat -A PREROUTING -i eth2 -p tcp --source-port 21 -j DNAT --dport 1723 --to 192.168.1.6
What did I do wrong?
-ee99ee2
P.S. - I know didn't work. I tried telneting into it from outside, connection refused. But I can telnet into 1723 from inside my network on 192.168.1.6.
I tried this, but it didn't work:
iptables -t nat -A PREROUTING -i eth2 -p tcp --source-port 21 -j DNAT --dport 1723 --to 192.168.1.6
What did I do wrong?
-ee99ee2
P.S. - I know didn't work. I tried telneting into it from outside, connection refused. But I can telnet into 1723 from inside my network on 192.168.1.6.