LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-25-2012, 05:24 AM   #1
weylin
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Rep: Reputation: 0
ubuntu LAMP server, can't access site remotely, locally works by local ip and wan


So I can access the site from the wan ip, the lan ip, localhost on the actual server, but people can't seem to connect to it. I have the server in DMZ mode, and I even opened port 80 in the router as well. I also turned off the default firewall that comes with ubuntu and i do not have iptables. My friend said he was able to ping the box and said that it was app side.

sudo lsof -i

apache2 1376 root 3u IPv4 9496 0t0 TCP *:www (LISTEN)
apache2 1473 www-data 3u IPv4 9496 0t0 TCP *:www (LISTEN)
apache2 1474 www-data 3u IPv4 9496 0t0 TCP *:www (LISTEN)
apache2 1475 www-data 3u IPv4 9496 0t0 TCP *:www (LISTEN)
apache2 1476 www-data 3u IPv4 9496 0t0 TCP *:www (LISTEN)
apache2 1477 www-data 3u IPv4 9496 0t0 TCP *:www (LISTEN)
apache2 2035 www-data 3u IPv4 9496 0t0 TCP *:www (LISTEN)

which he said looked good
 
Old 04-25-2012, 05:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what is their experience when they can't connect? A standard test to divide and conquer the issue would be to telnet to port 80 and see if that connects. You can also run tcpdump on the server to see if any requests are indeed reaching the box.
 
Old 04-25-2012, 05:52 AM   #3
weylin
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
what is their experience when they can't connect? A standard test to divide and conquer the issue would be to telnet to port 80 and see if that connects. You can also run tcpdump on the server to see if any requests are indeed reaching the box.
I believe it just kind of loads for a while and eventually fails, not sure what message they get, but it does load for a while.
 
Old 04-25-2012, 05:59 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
we'd really need more than that. if it just doesn't fail instantly, it could be a network timeout issue, which could certainly make people believe it's loading in some form when it's actually not.
 
Old 04-25-2012, 06:03 AM   #5
weylin
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
telnet 192.168.1.102 80
Trying 192.168.1.102...
Connected to 192.168.1.102.
Escape character is '^]'.
Connection closed by foreign host.
 
Old 04-25-2012, 06:10 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
right, but you already said it DID work locally... so what about from the remote locations?
 
Old 04-25-2012, 06:13 AM   #7
weylin
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
I don't have a way of testing remotely at the moment. Unless, maybe...

Last edited by weylin; 04-25-2012 at 06:14 AM.
 
Old 04-25-2012, 06:34 AM   #8
weylin
LQ Newbie
 
Registered: Feb 2009
Posts: 12

Original Poster
Rep: Reputation: 0
So when I went to the IP from a different internet connection it loaded a login page to some healthcare site. I wasn't able to telnet.
 
Old 04-25-2012, 06:37 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
right, so a routing or firewall issue at some place. run "tcpdump -vn port 80" on the server when you try to connect and see if the server itself sees anything. even if iptables is knocking it on the head, tcpdump will see it, so if tcpdump doesn't see anything, the traffic is not reaching the box.
 
  


Reply



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
How can I edit files remotely from LAMP Ubuntu Server with Ubuntu Desktop? pyrospade Linux - Server 4 11-27-2010 03:07 AM
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 02:06 PM
centos 4.2: terminal bell works remotely, but not locally hawarden Linux - General 2 10-28-2005 02:39 PM
tightVNC works locally but not remotely? mikeli Linux - Software 2 02-01-2005 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:25 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
Open Source Consulting | Domain Registration