Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Web server not accepting internet connections
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mark7714
n00b
n00b


Joined: 14 Aug 2006
Posts: 39
Location: London

PostPosted: Sun May 11, 2008 4:00 pm    Post subject: Web server not accepting internet connections Reply with quote

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
View user's profile Send private message
xalan
Apprentice
Apprentice


Joined: 01 Feb 2005
Posts: 190

PostPosted: Sun May 11, 2008 6:05 pm    Post subject: Reply with quote

When I access it, I get a page with a single word: "working". Are you also seeing the same thing?
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Sun May 11, 2008 6:38 pm    Post subject: Reply with quote

Works for me too by name and IP.



Cheers,
jcat
Back to top
View user's profile Send private message
mark7714
n00b
n00b


Joined: 14 Aug 2006
Posts: 39
Location: London

PostPosted: Sun May 11, 2008 9:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Sun May 11, 2008 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
mark7714
n00b
n00b


Joined: 14 Aug 2006
Posts: 39
Location: London

PostPosted: Mon May 12, 2008 9:15 am    Post subject: Reply with quote

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
View user's profile Send private message
electronvolt
Tux's lil' helper
Tux's lil' helper


Joined: 16 May 2007
Posts: 83

PostPosted: Mon May 12, 2008 11:48 am    Post subject: Reply with quote

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

Code:

192.168.7.2(whatever the webserver's IP address is)    www.saltypirate.com
Back to top
View user's profile Send private message
mark7714
n00b
n00b


Joined: 14 Aug 2006
Posts: 39
Location: London

PostPosted: Mon May 12, 2008 11:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum