Hot answers tagged squid
1
You cannot add extra condition to acl guests this way — each squid ACL may have only a single type (you may implement “or” logic with multiple acl lines for the same ACL, but not “and”). Extra parameters on the acl NAME external TYPE ... line are actually appended to the command line of the external helper.
Also you have a syntax error on the next line (the ...
1
The problem is when squid tries to connect to the web server (on port 8080) it's request is also redirected to itself. You must limit the scope of the REDIRECT rule (e.g. based on the incoming interface).
If the outside interface on your server is eth0 change the rule like this:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8080 -j REDIRECT ...
Only top voted, non community-wiki answers of a minimum length are eligible