Networking Forums

Networking Forums > Computer Networking > Linux Networking > Squid can't open HTTP port.

Reply
Thread Tools Display Modes

Squid can't open HTTP port.

 
 
Nuno Paquete
Guest
Posts: n/a

 
      09-29-2004, 09:06 PM
Hi,

I'm trying to run squid, but I start it I receive this error message:

Sep 29 21:54:02 ns (squid): Cannot open HTTP Port

What could be happening?
First, I defined "http_port" to 3128, then to 80, now I defined to:
192.168.1.1:80, but all this options return the same error.
Can anyone help me?
Thanks in advance,

Nuno Paquete
 
Reply With Quote
 
 
 
 
Alex Harsch
Guest
Posts: n/a

 
      09-30-2004, 02:03 PM
Nuno Paquete wrote:

> Hi,
>
> I'm trying to run squid, but I start it I receive this error message:
>
> Sep 29 21:54:02 ns (squid): Cannot open HTTP Port
>
> What could be happening?
> First, I defined "http_port" to 3128, then to 80, now I defined to:
> 192.168.1.1:80, but all this options return the same error.
> Can anyone help me?
> Thanks in advance,
>
> Nuno Paquete

Hello,

I think you either used the wrong syntax for defining the port or you are
starting squid as a user, who does not have the rights to open that port.
Ordinary users don't have the right to open port 80 or 3128.

Alex
 
Reply With Quote
 
vhu
Guest
Posts: n/a

 
      09-30-2004, 03:33 PM
Alex Harsch wrote:

> I think you either used the wrong syntax for defining the port or you are
> starting squid as a user, who does not have the rights to open that port.
> Ordinary users don't have the right to open port 80 or 3128.


By default, normal user doesn't have rights to open port < 1024, but has
rights for ports > 1024.
 
Reply With Quote
 
vhu
Guest
Posts: n/a

 
      09-30-2004, 03:37 PM
Nuno Paquete wrote:
> Hi,
>
> I'm trying to run squid, but I start it I receive this error message:
>
> Sep 29 21:54:02 ns (squid): Cannot open HTTP Port


Please try:
netstat -A inet -nlp

That should show if some other application (apache?) is using the ports
you tried.
 
Reply With Quote
 
Nuno Paquete
Guest
Posts: n/a

 
      10-01-2004, 11:38 AM
Hi,

Now Squid is running on port 3128. I've confirmed with netstat.
The problem is when I configure client browsers to access my proxy on port
3128. It seems that it's waiting to oppen the page, but it waits infinitly.
Here is my configuration file:

http_port 3128
icp_port 3130
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 8 MB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/lib/squid/cache 10 16 256
cache_access_log /var/lib/squid/logs/access.log
cache_log /var/lib/squid/logs/cache.log
cache_store_log /var/lib/squid/logs/store.lo
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl my_network src 192.168.1.0/255.255.255.0
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow my_network
http_access deny all
http_reply_access allow all
icp_access allow all
miss_access allow all
cache_effective_user nobody
cache_effective_group nogroup
coredump_dir /var/lib/squid/cache

Here is my logs (/var/lib/squid/logs/cache.log):

2004/10/01 12:23:01| Starting Squid Cache version 2.5.STABLE6 for
i586-pc-linux-gnu...
2004/10/01 12:23:01| Process ID 23613
2004/10/01 12:23:01| With 1024 file descriptors available
2004/10/01 12:23:01| Performing DNS Tests...
2004/10/01 12:23:01| Successful DNS name lookup tests...
2004/10/01 12:23:01| DNS Socket created at 0.0.0.0, port 32822, FD 4
2004/10/01 12:23:01| Adding nameserver 212.113.164.58 from /etc/resolv.conf
2004/10/01 12:23:01| Adding nameserver 212.113.164.50 from /etc/resolv.conf
2004/10/01 12:23:01| Adding nameserver 212.113.164.59 from /etc/resolv.conf
2004/10/01 12:23:01| Adding nameserver 212.113.164.51 from /etc/resolv.conf
2004/10/01 12:23:01| Unlinkd pipe opened on FD 9
2004/10/01 12:23:01| Swap maxSize 10240 KB, estimated 787 objects
2004/10/01 12:23:01| Target number of buckets: 39
2004/10/01 12:23:01| Using 8192 Store buckets
2004/10/01 12:23:01| Max Mem size: 8192 KB
2004/10/01 12:23:01| Max Swap size: 10240 KB
2004/10/01 12:23:01| Rebuilding storage in /var/lib/squid/cache (DIRTY)
2004/10/01 12:23:01| Using Least Load store dir selection
2004/10/01 12:23:01| Set Current Directory to /var/lib/squid/cache
2004/10/01 12:23:01| Loaded Icons.
2004/10/01 12:23:02| Accepting HTTP connections at 0.0.0.0, port 3128, FD
10.
2004/10/01 12:23:02| Accepting ICP messages at 0.0.0.0, port 3130, FD 11.
2004/10/01 12:23:02| Accepting SNMP messages on port 3401, FD 12.
2004/10/01 12:23:02| WCCP Disabled.

I hope someone can help me.
Thanks in advance,

Nuno Paquete

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Socket connection to port fails despite port open / listening ! Jack Linux Networking 2 12-19-2007 03:46 PM
Cannot open port 80 for http access rondgefok Windows Networking 3 08-03-2006 05:53 PM
Squid cannot open HTTP Port Marc August Linux Networking 1 09-16-2005 02:12 AM
open ports on the router port 1900udp and port 5643 tcp James Broadband Hardware 0 02-20-2005 08:07 AM
Have squid forward to other proxy on specific port Sjaakie Helderhorst Linux Networking 2 11-03-2003 09:43 PM



1 2 3 4 5 6 7 8 9 10 11