port forwarding
Hello again,
I now have the following problem. First my configuration is: Ubuntu RC 6.06 server with: eth0 the 'internet' connection eth1 the lan with the ip 192.168.0.1 On my Windows computer i have the ip 192.168.0.10, the linux is setup to be a 'router' with Code:
iptables -P FORWARD ACCEPT Code:
iptables -t nat -A PREROUTING -p tcp -d 192.168.0.1 --dport 4899 -j DNAT --to 192.168.0.10:4899 Code:
iptables -t nat -A PREROUTING -p tcp -d 82.76.84.224 --dport 4899 -j DNAT --to 192.168.0.10:4899 Thanks! |
You may need to specify the device "-i eth1".
Oh, just found the article I was hunting for, check this out for more info on port fowarding in linux: http://www.hackorama.com/network/portfwd.shtml Cool |
Ok so this did the trick:
Code:
iptables -t nat -A PREROUTING -p tcp -i eth0 -d 82.76.84.224 --dport 4899 -j DNAT --to 192.168.0.10:4899 |
All times are GMT -5. The time now is 03:39 AM. |