Help - Search - Members - Calendar
Full Version: Port Forwarding With Iptables
Linuxhelp > Support > Technical Support
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 -j DNAT --to-destination
that is it i know there is probly some big mistake or wrong thing in there.
To forward quake requests to my client computer behind a firewall, i use the following line in my firewall script:

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

I haven't had any problems with this. Give it a try.
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-2018 Invision Power Services, Inc.