View previous topic :: View next topic |
Author |
Message |
mark7714 n00b
Joined: 14 Aug 2006 Posts: 39 Location: London
|
Posted: Sun May 11, 2008 4:00 pm Post subject: Web server not accepting internet connections |
|
|
Hey there, I was hoping I could get some help troubleshooting a problem. I run a small web server for hosting a blog. It's at www.saltypirate.com. It's been working fine for months, but when I tried to connect today I couldn't get through. DynDNS is fine, pings go through, nothing in the Apache error logs. I renamed the wordpress directory (which has files that point back to saltypirate.com) and just made a html document showing text. If I access it from another computer on the LAN, but pointing to the LAN IP (rather than the internet IP), the web page comes up. SO. Apache seems fine. This leaves me confused.
Anyone have any ideas?
Cheers,
Mark |
|
Back to top |
|
|
xalan Apprentice
Joined: 01 Feb 2005 Posts: 190
|
Posted: Sun May 11, 2008 6:05 pm Post subject: |
|
|
When I access it, I get a page with a single word: "working". Are you also seeing the same thing? |
|
Back to top |
|
|
jcat Veteran
Joined: 26 May 2006 Posts: 1337
|
Posted: Sun May 11, 2008 6:38 pm Post subject: |
|
|
Works for me too by name and IP.
Cheers,
jcat |
|
Back to top |
|
|
mark7714 n00b
Joined: 14 Aug 2006 Posts: 39 Location: London
|
Posted: Sun May 11, 2008 9:08 pm Post subject: |
|
|
No kidding? That was a page I made to replace the wordpress blog (therefore without any links to itself). Weird. Can't seem to connect from any of the computers on the LAN (unless I point them to the local IP). Any clues as to what could cause this? |
|
Back to top |
|
|
jcat Veteran
Joined: 26 May 2006 Posts: 1337
|
Posted: Sun May 11, 2008 9:33 pm Post subject: |
|
|
Isn't it possible that your firewall/router isn't allowing the traffic from your LAN to your external IP to be forwarded?
I have come across some "off the shelf" devices that behave like this.
Cheers,
jcat |
|
Back to top |
|
|
mark7714 n00b
Joined: 14 Aug 2006 Posts: 39 Location: London
|
Posted: Mon May 12, 2008 9:15 am Post subject: |
|
|
Doesn't seem to be the case? If I turn the firewall on my router off traffic still won't make it through? What's more, the computer hosting the page can't even access itself if it tries through saltypirate.com (but LAN IP and localhost are fine). I also can't ssh in through saltypirate, but can through the local IP. I'm checking denyhosts (it's not that), but it shouldn't be banning web traffic as well...
*edited to change telnet to ssh.
**edited again to say it doesn't seem to be denyhosts. |
|
Back to top |
|
|
electronvolt Tux's lil' helper
Joined: 16 May 2007 Posts: 83
|
Posted: Mon May 12, 2008 11:48 am Post subject: |
|
|
is your webserver behind a NAT router on your LAN? If so then you need to add a line to /etc/hosts on all machines that need to access it from within your LAN
|
|
Back to top |
|
|
mark7714 n00b
Joined: 14 Aug 2006 Posts: 39 Location: London
|
Posted: Mon May 12, 2008 11:04 pm Post subject: |
|
|
Edit - yeah, it does seem to be a NAT issue. I first replied saying it couldn't be, but I added saltypirate.com to /etc/hosts on an OS X machine and it's connecting now. Such a dirty fix, but at least I can see the blog (and add posts!).
Cheers for the though,
Mark |
|
Back to top |
|
|
|