LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   web server not accessible externally (https://www.linuxquestions.org/questions/linux-networking-3/web-server-not-accessible-externally-440181/)

GoBillsBN 04-29-2006 11:39 PM

web server not accessible externally
 
First attempt at setting up a server, so I apologize if I it sounds like I don't know what I'm doing...........

I installed an apache server under Mandriva 2006. The problem is that it's accessible via the internal IP address (from the router) but not at all externally.

Here's the output of ifconfig:
eth0 Link encap:Ethernet HWaddr 00:16:76:50:B5:88
inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::216:76ff:fe50:b588/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11884 errors:0 dropped:0 overruns:0 frame:0
TX packets:7138 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6395829 (6.0 MiB) TX bytes:1117605 (1.0 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12738 errors:0 dropped:0 overruns:0 frame:0
TX packets:12738 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3008256 (2.8 MiB) TX bytes:3008256 (2.8 MiB)

I have a static IP address setup at 192.168.0.200. I made sure that the static IP is not conflicting with the routers DHCP server. I then set up port forwarding for that IP through the router (a D-link DL-524).

Initially I tried port 80 (apache) and port 21 (proftpd server), after that failed I thought maybe it was a case of comcast blocking those ports so I switched to port 8095 and 8888, but still nothing externally.

I also tried setting up the IP as a DMZ on the router which I guess should let everything in, but that also failed.

Tested on computers outside the network and via google translate to see if it worked externally using the external IP and has failed each time as stated........

Actually, everything is not working internally either. I can only access the server from the actual computer running it. No other internal computer can access it from the internal IP (shouldn't this be working at least?)

Would really appreciate any suggestions because I've really completely run out of ideas........

GoBillsBN 04-29-2006 11:55 PM

solved my own problem..........should've figured it out long ago, maybe someone will learn from it.

anyway, I had iptables running so the firewall was blocking all incoming traffic to my server, which makes sense why it wasn't accessible externally.

everything is working great now!


All times are GMT -5. The time now is 06:28 PM.