LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-03-2004, 05:32 PM   #1
peruvianllama
LQ Newbie
 
Registered: Jan 2004
Location: Canada
Distribution: RedHat / Ubuntu
Posts: 9

Rep: Reputation: 0
Troubles with Web Serving (Apache 2.0.50)


My problem is this: I cannot consistently access my website using my external IP. Sometimes I can, most times I cannot. However, I can always access it using my internal (LAN) IP address, of 192.168.1.108.

I've seen similar problems in other threads, but most (all) of them were resolved by doing something that I've already done - and nothing has worked yet for me.

I'm running RedHat 7.3 on an old P-133 box, booted into CLI-only mode. I have compiled and installed Apache 2.0.50, PHP 4.3.8, which had been running fine up until a few weeks ago. I also had installed MySQL 4.0.20, which I'm 90% certain had been running fine before any problems arose.

The box is connected to a Linksys 'NetworkEverywhere' router, which is plugged in to my cable modem with then gives me access to the internet. The router is set up to port-forward port 80 to 192.168.1.108, which is the IP of my web-serving box on the LAN. I have turned off all software firewall rules that I am aware of - running the command iptables -L returns:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


Which is what I want it to be doing right now. After I get this fixed, I'll put some more rules in.

At the moment, my website is down, and the ShieldsUp service on grc.com tells me that port 80 is in 'Stealth' mode, which makes no sense to me if I don't have any firewalls between me and the 'net that are blocking/hiding port 80.

Double-checking the Apache conf file, httpd.conf, confirms that Apache is set to listen on port 80. I'm running out of ideas on what to check - as far as I can tell, everything is opened up through the router, etc., to push everything on port 80 straight through to my machine, yet it doesn't respond all the time. I even called my ISP to see if they block port 80, and they told me that they did not. Even running netstat -nlp gives me a line looking like:

tcp 0 0 192.168.1.108:80 0.0.0.0:* LISTEN 1083/httpd

Which tells me that something is in fact listening on port 80.

Is there any way for me to track an individual packet as it tries to make its way to my machine on port 80? Would this even be useful? Any thoughts or suggestions from anyone on what I could do next would be greatly appreciated!

Cheers,
- Ross
 
Old 11-04-2004, 07:34 AM   #2
knutove1728
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Redhat FC2
Posts: 44

Rep: Reputation: 15
What happens if you bypass the router?
 
Old 11-09-2004, 01:56 AM   #3
peruvianllama
LQ Newbie
 
Registered: Jan 2004
Location: Canada
Distribution: RedHat / Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
Hey knutove, and thanks for the response. Midterms and such have kept me from posting here again sooner.

I had previously tried connecting the box directly to the cable modem a while back, but with mixed results. Seeing as this means disconnecting every other machine from the internet, I had to phone someone to check on the status of the webpage. They claimed it was down, but I think that was because of an unrelated DNS error... but I digress.

I took your advice, and again plugged the box straight into my cable modem, and lo and behold, the website worked. Putting it back behind the router, and it worked for a few minutes, then stopped working, then started again, etc. There was much gnashing of teeth. I happened to be together with a few geek buddies of mine over the weekend, and so we decided to sit down for a bit and put our heads together. Eventually, thanks to the God-send that is Google, we found mention of the particular brand of router I was using (a Linksys Network Everywhere router) having the exact same problems I had experienced - flaky and random behaviour regarding port 80. One review even mentioned that he had called and complained to Linksys, only to be told that they were aware of the problem, and were not planning to fix it. Harrumph.

Google will give you what you want, but a direct link to reviews on Amazon.com is here:
http://www.amazon.com/exec/obidos/tg...724989-2586418

I hope that anyone who is going through the same headache I went through, can be helped by some of this. Moral of the story: You get what you pay for with a $14 router.

Last edited by peruvianllama; 11-09-2004 at 01:57 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Distros for web serving Rotwang Linux - Distributions 5 03-08-2004 04:26 PM
Web serving through blocked ports... ChrisDiG Linux - Software 10 10-31-2003 04:18 PM
multiple boxes serving web pages peteABK Linux - Networking 7 09-11-2003 04:16 PM
Web Serving Loki_VA Linux - General 4 08-24-2003 06:00 AM
serving web pages on another port iggymac Linux - Networking 3 03-21-2002 02:21 PM


All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration