LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-20-2009, 06:23 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Rep: Reputation: 30
can't figure out why port 80 won't listen on squid


Can't seem to access my squid server on port 80.
I have port 80 allowed in the conf for this IP.
apache is listening to port 80 but only on the 2nd IP.
iptables is allowing through port 80 incoming
nmap shows no ports open on 80 though:
Code:
Starting Nmap 5.00 ( http://nmap.org ) at 2009-08-20 11:19 BST
NSE: Loaded 0 scripts for scanning.
Initiating SYN Stealth Scan at 11:19
Scanning localhost.localdomain (127.0.0.1) [1000 ports]
Discovered open port 443/tcp on 127.0.0.1
Discovered open port 8080/tcp on 127.0.0.1
Discovered open port 53/tcp on 127.0.0.1
Discovered open port 25/tcp on 127.0.0.1
Discovered open port 111/tcp on 127.0.0.1
Discovered open port 5555/tcp on 127.0.0.1
Discovered open port 8087/tcp on 127.0.0.1
Discovered open port 1057/tcp on 127.0.0.1
Completed SYN Stealth Scan at 11:19, 0.04s elapsed (1000 total ports)
Host localhost.localdomain (127.0.0.1) is up (0.0000090s latency).
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 992 closed ports
PORT     STATE SERVICE
25/tcp   open  smtp
53/tcp   open  domain
111/tcp  open  rpcbind
443/tcp  open  https
1057/tcp open  unknown
5555/tcp open  freeciv
8080/tcp open  http-proxy
8087/tcp open  unknown
 
Old 08-20-2009, 10:59 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Did you restart squid?
 
Old 08-20-2009, 11:06 AM   #3
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by qwertyjjj View Post
Can't seem to access my squid server on port 80.
I have port 80 allowed in the conf for this IP.
apache is listening to port 80 but only on the 2nd IP.
iptables is allowing through port 80 incoming
nmap shows no ports open on 80 though:
Code:
Starting Nmap 5.00 ( http://nmap.org ) at 2009-08-20 11:19 BST
NSE: Loaded 0 scripts for scanning.
Initiating SYN Stealth Scan at 11:19
Scanning localhost.localdomain (127.0.0.1) [1000 ports]
Discovered open port 443/tcp on 127.0.0.1
Discovered open port 8080/tcp on 127.0.0.1
Discovered open port 53/tcp on 127.0.0.1
Discovered open port 25/tcp on 127.0.0.1
Discovered open port 111/tcp on 127.0.0.1
Discovered open port 5555/tcp on 127.0.0.1
Discovered open port 8087/tcp on 127.0.0.1
Discovered open port 1057/tcp on 127.0.0.1
Completed SYN Stealth Scan at 11:19, 0.04s elapsed (1000 total ports)
Host localhost.localdomain (127.0.0.1) is up (0.0000090s latency).
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 992 closed ports
PORT     STATE SERVICE
25/tcp   open  smtp
53/tcp   open  domain
111/tcp  open  rpcbind
443/tcp  open  https
1057/tcp open  unknown
5555/tcp open  freeciv
8080/tcp open  http-proxy
8087/tcp open  unknown

it worked when i tried


Code:
[root@cuba ~]# netstat -plant | grep ':80 '
tcp        0      0 213.x.x.x:80            0.0.0.0:*                   LISTEN      11538/httpd
tcp        0      0 127.0.0.1:80                0.0.0.0:*                   LISTEN      11485/(squid)
make sure squid is restarted
 
Old 08-20-2009, 11:06 AM   #4
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by repo View Post
Did you restart squid?
yes.
 
Old 08-20-2009, 11:08 AM   #5
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by centosboy View Post
it worked when i tried


Code:
[root@cuba ~]# netstat -plant | grep ':80 '
tcp        0      0 213.x.x.x:80            0.0.0.0:*                   LISTEN      11538/httpd
tcp        0      0 127.0.0.1:80                0.0.0.0:*                   LISTEN      11485/(squid)
make sure squid is restarted
Code:
tcp        0      0 88.xxx.xxx.ip1:80           0.0.0.0:*                   LISTEN      29033/(squid)
tcp        0      0 88.xxx.xxx.ip2:80           0.0.0.0:*                   LISTEN      25009/httpd
 
Old 08-20-2009, 11:10 AM   #6
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
working now.
bizarre, I haven't changed anything.
 
Old 08-21-2009, 07:03 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
working now.
bizarre, I haven't changed anything.
This is because squid need some time to restart.(especially to shutdown)
There is always a reason why things happen.

Last edited by repo; 08-21-2009 at 07:04 AM.
 
Old 08-21-2009, 07:06 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
If you want, you can mark the thread as solved.
 
Old 08-21-2009, 07:07 AM   #9
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by repo View Post
This is because squid need some time to restart.(especially to shutdown)
There is always a reason why things happen.
Err. it restarts in about 30 seconds.
I restarted it a few times, that wasn't the problem.
Anyway...thanks.
 
  


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
MULTICAST address and port, socket listen only on port? jf.argentino Linux - Networking 2 03-09-2009 01:42 PM
how to configure squid to listen two different network fakhrul Linux - Networking 1 10-30-2006 12:01 AM
Squid can listen in 2 different Ips xrtc Linux - Networking 1 11-15-2005 01:32 AM
Port won't Listen dvong3 Linux - Networking 4 05-12-2004 01:18 PM
Can Squid listen at TWO interface ? xanthium Linux - Networking 1 04-30-2001 07:54 AM


All times are GMT -5. The time now is 10:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration