Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
see if that process that's running on port 3128 is squid
also you don't want to run squid on port 80
you should just run it on port 3128 and
setup a transparent proxy with iptables
/etc/squid/squid.conf
Code:
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
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 SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
acl lan1 src 192.168.0.0/255.255.255.0
acl lan2 src 192.168.1.0/255.255.255.0
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow lan1
http_access allow lan2
http_access allow localhost
http_access deny all
icp_access allow all
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
iptables rules for squid transparent proxy
ppp0 is for dial up clients if you have a dialup server
the eth0 and eth1 would be internal lan ( see lan1 and lan2 in acl list )
with your squid.conf file when i start the service shows the word ok, but if i use netstat -a it don´t show the service squid and when i use /etc/rc.d/init.d/squid status show me: squid deade but subsys locked, squid: ERROR: No running copy
with my squid.conf file the service start and netstat -a showme the service and squid status too, this is my file:
The problem is that squid send the error to all the clients, all the message is:
ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: http://home.netscape.com/bookmark/6_0/homebutton.html
The following error was encountered:
Socket Failure
The system returned:
(98) Address already in use
Squid is unable to create a TCP socket, presumably due to excessive load. Please retry your request.
Your cache administrator is root.
(squid/2.5.STABLE1-20021214)
Starting Squid Cache version 2.5.STABLE1-20021214 for i586-pc-linux-gnu...
Process ID 628
With 1024 file descriptors available
DNS Socket created at 0.0.0.0, port 16384, FD 5
Adding nameserver 172.16.0.1 from /etc/resolv.conf
Unlinkd pipe opened on FD 10
Swap maxSize 204800 KB, estimated 15753 objects
Target number of buckets: 787
Using 8192 Store buckets
Max Mem size: 43008 KB
Max Swap size: 204800 KB
Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
Rebuilding storage in /var/lib/squid (CLEAN)
Using Least Load store dir selection
Current Directory is /root
Loaded Icons.
Accepting HTTP connections at 192.0.0.9, port 80, FD 11.
WCCP Disabled.
Ready to serve requests.
commBind: Cannot bind socket FD 13 to *:0: (98) Address already in use
commBind: Cannot bind socket FD 13 to *:0: (98) Address already in use
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.