Feb 11, 2002 #1 axman505 Technical User Jun 20, 2001 489 US I am trying to forward port 3389 to a local lan address. How do i do this? i can't seem to ge tit right
I am trying to forward port 3389 to a local lan address. How do i do this? i can't seem to ge tit right
Feb 11, 2002 #2 ifincham IS-IT--Management Jul 11, 2001 1,768 GB Hi, You just do a line like this : /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 3389 -j DNAT --to 192.168.1.10 (where eth0 is the incoming interface and 192.168.1.10 is an example of the box to which you are forwarding packets) Obviously you also need the forwarding turned on in the /proc filesystem in the usual way : echo 1 >/proc/sys/net/ipv4/ip_forward Hope this helps Upvote 0 Downvote
Hi, You just do a line like this : /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 3389 -j DNAT --to 192.168.1.10 (where eth0 is the incoming interface and 192.168.1.10 is an example of the box to which you are forwarding packets) Obviously you also need the forwarding turned on in the /proc filesystem in the usual way : echo 1 >/proc/sys/net/ipv4/ip_forward Hope this helps
Feb 11, 2002 Thread starter #3 axman505 Technical User Jun 20, 2001 489 US i did that, but it doesnt seem to work. Should netstat -at list the port ??? THanks again in advance Upvote 0 Downvote