<div dir="ltr"><div><div>Amos,<br><br></div>That was exactly what I was looking for. I tried it and it seems to work just like I wanted. My other alternative would have been to run 2 copies of squid, but this is much cleaner from my perspective. Thank you very much!<br><br></div>PH<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 9:13 PM, Amos Jeffries <span dir="ltr"><<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 21/11/17 06:56, Paul Hackmann wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Amos,<br>
<br>
If the website that is being asked for is not in the whitelist, won't it fall through and ask for authentication? That is how it seems to work to me. That's why I am thinking I need 2 different ports or something to do what I want.<br>
</blockquote>
<br></span>
You do need two different ports regardless of the http_access rules. One for the forward/explicit proxy traffic and one for the intercept/tproxy traffic. The TCP IP:port details for each of those "modes" is given in completely different ways and the HTTP message syntax is also different so the *cannot* be delivered to the same ports.<br>
<br>
<br>
A whitelist generally is formed from two lines, one allowing and one denying everything else.<br>
<br>
If 'everything else' is defined as just the stuff arriving in one specific port you get this:<br>
<br>
http_port 3128<br>
http_port 3129 intercept<br>
<br>
acl portX myportname 3129<br>
<br>
http_access allow portX whitelist<br>
http_access deny portX<br>
<br>
http_access deny !login<br>
...<br>
<br>
Amos<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
PH<div><div class="h5"><br>
<br>
On Mon, Nov 20, 2017 at 11:38 AM, Amos Jeffries <<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>>> wrote:<br>
<br>
On 21/11/17 05:02, Paul Hackmann wrote:<br>
<br>
Hi all. I've got a fairly basic squid config set up on linux. I have basic authentication set up on it to the default 3128<br>
port, and it works just fine. I would like to keep this<br>
configuration. However, I would like to set up another port<br>
that only allows a certain whitelist of websites that doesn't<br>
require or ask for authentication. I want to set this up for<br>
certain apps that don't have proxy settings built into them. I<br>
want windows to be able to connect to some sites, but not<br>
everything and if it can't reach the site, I don't want it to<br>
ask for credentials. With my current configuration, it asks for<br>
credentials for any app that is trying to connect to a<br>
non-whitelisted website. Is this configuration possible and do<br>
you have an example? Sorry if this has been answered before, I<br>
am very green to squid yet.<br>
<br>
<br>
Simply place the http_access rules for handling that traffic above<br>
the first line which requires authentication.<br>
<br>
http_access ... lines that dont require auth.<br>
<br>
acl login proxy_auth REQUIRED<br>
http_access deny !login<br>
<br>
http_access ... rules for authenticated users.<br>
<br>
<br>
Amos<br>
______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.<wbr>org</a><br></div></div>
<mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squi<wbr>d-cache.org</a>><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/l<wbr>istinfo/squid-users</a><span class=""><br>
<<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a>><br>
<br>
<br>
<br>
<br>
-- <br>
Paul Hackmann<br>
Sims TV/Haven Electronics<br>
121 N. Vine St.<br>
West Union, IA. 52175<br>
</span><a href="tel:563-422-5751" value="+15634225751" target="_blank">563-422-5751</a> <tel:(563)%20422-<wbr>5751><span class=""><br>
<br>
<br>
______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.<wbr>org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/l<wbr>istinfo/squid-users</a><br>
<br>
</span></blockquote><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.<wbr>org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/l<wbr>istinfo/squid-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Paul Hackmann<br></div>Sims TV/Haven Electronics<br></div><div>121 N. Vine St.<br></div>West Union, IA. 52175<br>563-422-5751<br></div></div>
</div>