LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't see WebServer from outside... Can see WebServer locally as http://localhost (https://www.linuxquestions.org/questions/linux-networking-3/cant-see-webserver-from-outside-can-see-webserver-locally-as-http-localhost-83593/)

friddick 08-19-2003 03:34 PM

Can't see WebServer from outside... Can see WebServer locally as http://localhost
 
I can't reach a domain on newly setup Redhat Linux webserver at my office

IBM Netfinity 3500
Dual P-II 266 CPU's
128mb RAM
9gb SCSI HD

Redhat Linux 7.1
Apache version 1.3.19

Anyone have any idea why I can't reach the domain:domainz.com-
I can browse to the default Apache web page on the local box at :
[localhost] and [127.0.0.1] and the static IP [36.116.72.105]

Note: I have a DSL Internet connection with 3 IP addresses (let's say 36.116.72.103, 104 and 105). I've switched some numbers around so the actual IP addresses are not shown to the whole world.

I go home and can't reach [domainz.com]. I can ping [36.116.72.105] just fine. I'm also running WebMin web based management software that listens on port 10000 and I can get to that login page by going to :

[domainz.com:10000]
Any ideas. I think it has something to do with DNS but I'm lost.

Goto [66.227.123.217/Network.gif] to see network layout

Supporting setup information already documented in this thread.
[threadid=75356]

david_ross 08-19-2003 03:38 PM

That domain resolves to:
202.46.160.52

I think you should ask your dns registrar to update the entry.

friddick 08-19-2003 03:50 PM

I didn't put the real domain or IP's up on the forum

Note: I have a DSL Internet connection with 3 IP addresses (let's say 36.116.72.103, 104 and 105). I've switched some numbers around so the actual IP addresses are not shown to the whole world.

david_ross 08-19-2003 03:51 PM

Do you have any firewalls running?

friddick 08-19-2003 03:53 PM

Not that I know of. Default installation of RH 7.1

friddick 08-19-2003 03:53 PM

Hope you don't mind, just sent you an email...

david_ross 08-19-2003 04:00 PM

no problem - got the e-mail. It looks like a firewall isse to me. RH 7.1 uses ipchains. Take a look to see if there are any firewall rules there:
ipchains -L

Also take a look on your router to make sure you have allowed port 80. You may want to check with your ISP to see if their terms of service permit you running a web server.

friddick 08-19-2003 04:10 PM

I hope I can do these things remotely, I'm at home using the web based mgmt tool (WebMin). This box is not behind the router.

This is what I get:

> ipchains -L
Chain input (policy ACCEPT):
target prot opt source destination ports
ACCEPT udp ------ NS2.ij.net anywhere domain -> any
ACCEPT udp ------ aslan.ij.net anywhere domain -> any
ACCEPT udp ------ anywhere anywhere bootps:bootpc -> bootps:bootpc
ACCEPT udp ------ anywhere anywhere bootps:bootpc -> bootps:bootpc
ACCEPT all ------ anywhere anywhere n/a
REJECT tcp -y---- anywhere anywhere any -> 0:1023
REJECT tcp -y---- anywhere anywhere any -> nfs
REJECT udp ------ anywhere anywhere any -> 0:1023
REJECT udp ------ anywhere anywhere any -> nfs
REJECT tcp -y---- anywhere anywhere any -> x11:6009
REJECT tcp -y---- anywhere anywhere any -> xfs
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):

friddick 08-19-2003 04:12 PM

browse to 66.227.123.217/Network.gif

You'll get an idea of the network setup...

dmx9595 08-19-2003 04:30 PM

probably firewall..
run: redhat-config-securitylevel
and make sure WWW (http) has been opened. also if your behind a router firewall youll have to open the port there as well.. read your router documentation or ask your sysadmin.

friddick 08-19-2003 04:33 PM

Linux box not behind router.

> redhat-config-securitylevel
sh: redhat-config-securitylevel: command not found

dmx9595 08-19-2003 04:41 PM

redhat-config-securitylevel is a gui to config the redhat firewall ( must have and be in X)
lynx@Kv ~:$ whereis redhat-config-securitylevel
redhat-config-securitylevel: /usr/bin/redhat-config-securitylevel /usr/share/redhat-config-securitylevel

david_ross 08-19-2003 04:48 PM

friddick - it does look the firewall rules. Try flushing them:
ipchains -F

friddick 08-19-2003 06:27 PM

I flushed the firewall rules...

Now I can browse the default Apache web page

> ipchains -F
> ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):

Thanks

:confused: Frank ;)


:Pengy:


All times are GMT -5. The time now is 09:32 PM.