PDA

View Full Version : FC6 not responding to port forwarded packets


archsupafly
13th May 2007, 09:55 PM
Hello all,
I'm having trouble with a fedora install, that won't respond to network traffic if its port forwarded.

The background:
I have a small webserver running behind a netgear firewall router. The netgear firewall router forwards all of its public ip traffic if its http or ssh to the internal server. The server currently is running OSX howerever, I have a new box running Fedora Core 6 to replace it.

The problem:
The new Fedora Box will not respond to the port forwarded traffic. If I connect to it internally (using the 192.168.0.100 address) it works fine. I can ssh to it as well as get web pages that its serving. However If I try to access it from the internet I get no response, either via ssh or web requests. I'm pretty sure its not a problem with the router, as I can access the old server (running OSX) just fine, but when I switch the traffic to forward to the Fedora Box instead of the OSX server, everything stops working. Further, if I run TCPdump on the fedora box, i actually see the packet requests coming from the internet clients, but I see no responses from the fedora system. Its almost like it ignores the traffic as if it were running a firewall, however I've double checked and IPtables is not running at all.

I'm at a loss to figure out why the fedora box seemingly ignores the requests coming from the router, but responds to them, if they are local. Oh and one other piece of troubleshooting info is that the fedora box can access the internet just fine. Okay if anyone has any sugessions, I would greatly greatly appreciate it!!!!!!!

Brian1
13th May 2007, 10:06 PM
Are you running a firewall on the fedora machine?
If so are the ports needed to be open opened?
Not sure but if selinux is enabled it might need to be configured. I don't use it so no info on it.

Brian

archsupafly
13th May 2007, 11:22 PM

As mentioned, no firewall on the fedora box. Iptables is turned off.
Thats whats strange, its acting like theres a firewall, when theres not.
I once experienced a problem similar to this on a debian machine a few years ago and the fix was to add a virtual alias of the public ip of the router to the linux box (eth0:0) I tried that this time though and it didn't help, so i really am banging my head against a wall here.

archsupafly
14th May 2007, 07:36 PM
RESOLVED.
I was using dynamic routing and once I added a static route on the fedora box, all is well.

johenkel
16th May 2007, 02:49 PM
Hi archsupafly,
so what did you do ?
where did you add a static route on the fedora box ?

I am having the same problem. I can access my webserver from my LAN but not from the internet. telnet and RemoteDesktop do work though.

Thanks,
johenkel