<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
On Sun, 2015-05-31 at 08:45 +1200, Amos Jeffries wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On 31/05/2015 4:48 a.m., James Lay wrote:
<FONT COLOR="#737373">> Per the docs:</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> # Conditional configuration</FONT>
<FONT COLOR="#737373">> #</FONT>
<FONT COLOR="#737373">> # If-statements can be used to make configuration directives</FONT>
<FONT COLOR="#737373">> # depend on conditions:</FONT>
<FONT COLOR="#737373">> #</FONT>
<FONT COLOR="#737373">> # if <CONDITION></FONT>
<FONT COLOR="#737373">> # ... regular configuration directives ...</FONT>
<FONT COLOR="#737373">> # [else</FONT>
<FONT COLOR="#737373">> # ... regular configuration directives ...]</FONT>
<FONT COLOR="#737373">> # endif</FONT>
<FONT COLOR="#737373">> #</FONT>
<FONT COLOR="#737373">> # The else part is optional. The keywords "if", "else", and</FONT>
<FONT COLOR="#737373">> "endif"</FONT>
<FONT COLOR="#737373">> # must be typed on their own lines, as if they were regular</FONT>
<FONT COLOR="#737373">> # configuration directives.</FONT>
<FONT COLOR="#737373">> #</FONT>
<FONT COLOR="#737373">> # NOTE: An else-if condition is not supported.</FONT>
<FONT COLOR="#737373">> #</FONT>
<FONT COLOR="#737373">> # These individual conditions types are supported:</FONT>
<FONT COLOR="#737373">> #</FONT>
<FONT COLOR="#737373">> # true</FONT>
<FONT COLOR="#737373">> # Always evaluates to true.</FONT>
<FONT COLOR="#737373">> # false</FONT>
<FONT COLOR="#737373">> # Always evaluates to false.</FONT>
<FONT COLOR="#737373">> # <integer> = <integer></FONT>
<FONT COLOR="#737373">> # Equality comparison of two integer numbers.</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> Anyone have any examples, documentation, heck ANYTHING that can show how</FONT>
<FONT COLOR="#737373">> this works? I can't seem to find a thing besides the above.</FONT>
Those are for process controls (SMP, named services, etc).
<FONT COLOR="#737373">> My goal is</FONT>
<FONT COLOR="#737373">> something like the below:</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> if port = 80</FONT>
<FONT COLOR="#737373">> http_access deny all</FONT>
<FONT COLOR="#737373">> else</FONT>
<FONT COLOR="#737373">> http_access allow all</FONT>
<FONT COLOR="#737373">> endif</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> But nothing I'm trying as the condition expression is working. Thank</FONT>
<FONT COLOR="#737373">> you.</FONT>
The default Squid configuration should "just work"...
http_access deny !Safe_ports
http_access deny CONNECT !SSL_Ports
...
# this one permits the CONNECT *:443 requests to get bumped
http_access allow localnet
..
http_access deny all
If you are using any other access controls on your client traffic you
need to keep in mind that Squid is dealing with "CONNECT raw-IP:443 ..."
requests in http_access / adapted_http_access / url_rewrite_access /
adaptation_access / ssl_bump prior to bumping them.
Amos
_______________________________________________
</PRE>
</BLOCKQUOTE>
<BR>
Thanks Amos....in starting from scratch I completely neglected to even allow localnets...yugh! Continuing on and will post my final results.<BR>
<BR>
James<BR>
<BR>
</BODY>
</HTML>