[squid-users] commBind: Cannot bind socket error

From: Nick Howitt <n1ck.h0w1tt_at_gmail.com>
Date: Mon, 30 Apr 2012 14:36:47 +0100

Hi,
I am new to squid and I am trying to run in on my ClearOS 5.2 gateway
where it is supplied as a pre-configured package. However, whenever I
try to start it I lose all internet access. I would like to run it in
transparent mode which is a menu option I have for it.

My cache.log reads:
2012/04/25 12:51:06| Starting Squid Cache version 2.6.STABLE21 for
i686-redhat-linux-gnu...
2012/04/25 12:51:06| Process ID 24435
2012/04/25 12:51:06| With 1024 file descriptors available
2012/04/25 12:51:06| Using epoll for the IO loop
2012/04/25 12:51:06| DNS Socket created at 0.0.0.0, port 50915, FD 6
2012/04/25 12:51:06| Adding domain howitts.lan from /etc/resolv.conf
2012/04/25 12:51:06| Adding domain howitts.lan from /etc/resolv.conf
2012/04/25 12:51:06| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2012/04/25 12:51:06| Adding nameserver 208.67.222.222 from /etc/resolv.conf
2012/04/25 12:51:06| Adding nameserver 208.67.220.220 from /etc/resolv.conf
2012/04/25 12:51:06| Adding nameserver 194.168.4.100 from /etc/resolv.conf
2012/04/25 12:51:06| Adding nameserver 194.168.8.100 from /etc/resolv.conf
2012/04/25 12:51:06| User-Agent logging is disabled.
2012/04/25 12:51:06| Referer logging is disabled.
2012/04/25 12:51:06| Unlinkd pipe opened on FD 11
2012/04/25 12:51:06| Swap maxSize 102400 + 8192 KB, estimated 0 objects
2012/04/25 12:51:06| Target number of buckets: 425
2012/04/25 12:51:06| Using 8192 Store buckets
2012/04/25 12:51:06| Max Mem size: 8192 KB
2012/04/25 12:51:06| Max Swap size: 102400 KB
2012/04/25 12:51:06| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2012/04/25 12:51:06| Rebuilding storage in /var/spool/squid (CLEAN)
2012/04/25 12:51:06| Using Least Load store dir selection
2012/04/25 12:51:06| Set Current Directory to /var/spool/squid
2012/04/25 12:51:06| Loaded Icons.
2012/04/25 12:51:06| Accepting proxy HTTP connections at 0.0.0.0, port
3128, FD 13.
2012/04/25 12:51:06| commBind: Cannot bind socket FD 14 to
192.168.3.1:3128: (98) Address already in use
2012/04/25 12:51:06| commBind: Cannot bind socket FD 14 to
192.168.2.1:3128: (98) Address already in use
2012/04/25 12:51:06| commBind: Cannot bind socket FD 14 to
127.0.0.1:3128: (98) Address already in use
2012/04/25 12:51:06| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
2012/04/25 12:51:06| WCCP Disabled.
2012/04/25 12:51:06| Ready to serve requests.
2012/04/25 12:51:06| Done reading /var/spool/squid swaplog (0 entries)
2012/04/25 12:51:06| Finished rebuilding storage from disk.
2012/04/25 12:51:06| 0 Entries scanned
2012/04/25 12:51:06| 0 Invalid entries.
2012/04/25 12:51:06| 0 With invalid flags.
2012/04/25 12:51:06| 0 Objects loaded.
2012/04/25 12:51:06| 0 Objects expired.
2012/04/25 12:51:06| 0 Objects cancelled.
2012/04/25 12:51:06| 0 Duplicate URLs purged.
2012/04/25 12:51:06| 0 Swapfile clashes avoided.
2012/04/25 12:51:06| Took 0.3 seconds ( 0.0 objects/sec).
2012/04/25 12:51:06| Beginning Validation Procedure
2012/04/25 12:51:06| Completed Validation Procedure
2012/04/25 12:51:06| Validated 0 Entries
2012/04/25 12:51:06| store_swap_size = 0k
2012/04/25 12:51:07| storeLateRelease: released 0 objects

At this point I lose internet access. and it does not change when I
switch it to transparent mode. I am not aware of anything else running
on port 3128 and netstat -an -t | grep 3128 shows nothing.

If it helps at all, this is my squid.conf:

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.0/8
acl webconfig_lan src 192.168.2.0/24 192.168.3.0/24 192.168.10.0/24
acl webconfig_to_lan dst 192.168.2.0/24 192.168.3.0/24 192.168.10.0/24
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow webconfig_to_lan
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow webconfig_lan
http_access deny all
icp_access allow all
http_port 3128
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
coredump_dir /var/spool/squid
error_directory /etc/squid/errors
follow_x_forwarded_for allow localhost
http_port 192.168.3.1:3128 transparent
http_port 192.168.2.1:3128 transparent
http_port 127.0.0.1:3128 transparent

Can anyone help me, please?

Thanks,

Nick
Received on Mon Apr 30 2012 - 13:37:00 MDT

This archive was generated by hypermail 2.2.0 : Tue May 01 2012 - 12:00:05 MDT