<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
-----BEGIN PGP SIGNED MESSAGE----- <br>
Hash: SHA256 <br>
<br>
<a class="moz-txt-link-freetext" href="https://regex101.com">https://regex101.com</a> is useful to check regexp for correctness.<br>
<br>
21.11.15 3:37, Berkes, David пишет:<br>
<span style="white-space: pre;">> Hello.<br>
> I'm trying to create an ACL browser type to allow any
User-Agent header with the string iPhone. I have tried this ACL
various ways and cannot get it to work. Any help with the correct
setup and/or regexp would be much appreciated. I have the ACL's
commented out as when they are enabled, everything is allowed to
pass without hitting the authentication.<br>
><br>
> ### MY ACL's<br>
> acl iphone1 browser [(.*)(iPhone)(.*)]<br>
> acl iphone2 browser [.*\QiPhone\E.*]<br>
><br>
> ### ACCESS.LOG<br>
> sc.iasds01.com xxx.xxx.xxx.xxx - - [20/Nov/2015:15:12:26
-0600] "CONNECT sc.iasds01.com:80 HTTP/1.1" 200 172 "-"
"Mozilla/5.0 (iPhone; CPU iPhone OS 9_0 like Mac OS X)
AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13A344
Safari/601.1" TCP_TUNNEL:HIER_DIRECT<br>
><br>
><br>
><br>
> ### squid.conf<br>
> auth_param basic program /usr/lib64/squid/basic_ncsa_auth
/etc/squid/squid_passwd<br>
> acl iphone1 browser [(.*)(iPhone)(.*)]<br>
> acl iphone2 browser [.*\QiPhone\E.*]<br>
><br>
> acl ncsa_users proxy_auth REQUIRED<br>
><br>
> http_access allow manager localhost<br>
> #http_access allow iphone1<br>
> #http_access allow iphone2<br>
> http_access allow ncsa_users<br>
> http_access deny all<br>
><br>
> ________________________________<br>
><br>
> Piper Jaffray & Co. Since 1895. Member SIPC and NYSE.
Learn more at <a class="moz-txt-link-abbreviated" href="http://www.piperjaffray.com">www.piperjaffray.com</a>. Piper Jaffray corporate
headquarters is located at 800 Nicollet Mall, Minneapolis, MN
55402.<br>
><br>
> Piper Jaffray outgoing and incoming e-mail is electronically
archived and recorded and is subject to review, monitoring and/or
disclosure to someone other than the recipient. This e-mail may be
considered an advertisement or solicitation for purposes of
regulation of commercial electronic mail messages. If you do not
wish to receive commercial e-mail communications from Piper
Jaffray, go to: <a class="moz-txt-link-abbreviated" href="http://www.piperjaffray.com/do_not_email">www.piperjaffray.com/do_not_email</a> to review the
details and submit your request to be added to the Piper Jaffray
"Do Not E-mail Registry." For additional disclosure information
see <a class="moz-txt-link-abbreviated" href="http://www.piperjaffray.com/disclosures">www.piperjaffray.com/disclosures</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> squid-users mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
> <a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a></span><br>
<br>
-----BEGIN PGP SIGNATURE-----
<br>
Version: GnuPG v2
<br>
<br>
iQEcBAEBCAAGBQJWT5OaAAoJENNXIZxhPexGBKQH/1YNTXac6cQNqn6Fei7rxGxm
<br>
56O27xAMoQyW3Yo3/5msbCEA99yMBrOWg1IfjRrDnUxBNbFdor2OpkumOq3vmWws
<br>
Yggv+bqP9C3vFYC+nj1rmQCsGuprU8BQ4wuM+2eLodrZp01oM3z6XqWUmJ3RbXY2
<br>
DG/BvQMxC6xSNiAoMYIfpkTxwkEkKJ1PfdJQTdq1s+gQY/jNZZ5fOicSmORqDof9
<br>
UplkfduuUquimvKCJ1R6i79WLAbcMcmTEnL1GXryAy2PVKzFLs6q0+UNPiyBVpOa
<br>
ARlnyEbgeV1ajBJlYq1moCbdGFGknCNIEYeCgrdtSdaTGOpXRKP0YrtT2vQqsw0=
<br>
=I/N6
<br>
-----END PGP SIGNATURE-----
<br>
<br>
</body>
</html>