Help - Search - Members - Calendar
Full Version: Port Forwarding With Iptables
Linuxhelp > Support > Technical Support
willard1346
I cant get my iptable to work i have never forwarded a port before. I have read alot about this and it seems every one has a differnt code or something to do it. well i have came up with one that i thought it would work but it says my source is not a valid network/host. I do understand what it is telling me but i dont understand what to put in its place. I just want to forward all incoming for port 27015 to one of my other computers. My code is : iptables -t nat -A PREROUTING -p tcp -i eth0 -s 192.168.0.1:27015 -j DNAT --to-destination 192.168.0.17:27015
that is it i know there is probly some big mistake or wrong thing in there.
Thanks
Corey
To forward quake requests to my client computer behind a firewall, i use the following line in my firewall script:

QUOTE
$IPTABLES -t nat -A PREROUTING -i eth0 -p tcp --dport 27015 -j DNAT --to 192.168.0.2


I haven't had any problems with this. Give it a try.
willard1346
Thanks that did it!
Will laugh.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.