You are not logged in.
Pages: 1
Hey guys,
i'm having a bit of trouble with port forwarding on linux. I was reading into iptables etc but it seems more like a firewall than a port forwarder. Usually on windows i would just go to my router and set the port forwarder to my local ip that i would get from running ipconfig in cmd ex 192.168.0.13 etc. What would be a good starting point for something like this in linux? Any recommended readings?
Last edited by Brandon_R (2011-08-27 16:07:19)
Offline
Brandon_R,
you can use the same method in Linux.
To get your local ip, instead of ipconfig, use 'ip addr'.
Mektub
Follow me on twitter: https://twitter.com/johnbina
Offline
Ok i set up the port forward to my nodejs webserver on port 8000 but it still doesn't work. it keeps timing out. Do i need do so any "internal" port forwarding in linux like in the iptables? that would be automitically be done in windows. I understand i need to do everything in linux especially in arch and this way i can actually learn
Last edited by Brandon_R (2011-08-26 01:04:12)
Offline
I use several port forwardings and I do not use iptables. I even uninstalled it,
since my router has a good firewall and i don't see the need to complicate things.
On my local net there are Linux and one win7 machine and there is no difference,
just configure the router (with the correct local IP).
In fact, applications that use UPNP don't even need that I configure the router, they do
it themselves, as long as your router accepts UPNP (most do) and this option is enabled
on the router.
Mektub
Follow me on twitter: https://twitter.com/johnbina
Offline
You have a Linux machine as your router/gateway device? iptables is the correct tool for port forwarding; it does both firewalling and NAT'ing. (To be technically correct, a "Port Forward" is a DNAT)
There should be enough info here to get you going:
http://www.google.com/search?sourceid=c … rt+forward
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
https://wiki.archlinux.org/index.php/Internet_Share and 5-6 other relevant pages on the wiki could be a start too.
(not to mention the iptables/ipset manuals)
Last edited by Mr.Elendig (2011-08-27 12:02:42)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
One of the best sources I've found for learning and working with iproute2 is here: http://lartc.org/howto/
Offline
Ok guys sorry for the trouble but the problem wasn't linux at all. I was listening on the wrong port
Offline
Brandon_R,
please mark this thread as [SOLVED] by editing the title of your first post.
To know or not to know ...
... the questions remain forever.
Offline
Pages: 1