<div dir="ltr"><div>In my squid.conf<br><br><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:red"><font color="#000000">http_port 3128<br>http_port 3129 intercept<br><br></font></span></div><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:red"><font color="#000000">Thanks<br></font></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 8:44 AM, Yuri Voinov <span dir="ltr"><<a href="mailto:yvoinov@gmail.com" target="_blank">yvoinov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</span>Squid access denied?<br>
<br>
Look at this:<br>
<span class=""><br>
In my /etc/pf.conf rdr pass inet proto tcp from <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> to any<br>
>> port 80 -> 10.0.0.24 port 3129<br>
<br>
</span>Which port configured in Squid as intercept?<br>
<br>
3129?<br>
<br>
and 3128 is forwarding?<br>
<br>
05.03.15 19:36, <a href="mailto:monahbaki@gmail.com">monahbaki@gmail.com</a> пишет:<br>
<span class="">> Yes that's what I followed and user is getting a "access denied"<br>
> from the squid when he tries <a href="http://www.cnn.com" target="_blank">www.cnn.com</a><br>
><br>
> Sent from my BlackBerry 10 smartphone on the Verizon Wireless 4G<br>
> LTE network. Original Message From: Yuri Voinov Sent: Thursday,<br>
> March 5, 2015 8:22 AM To: <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
> Subject: Re: [squid-users] squid intercept config<br>
><br>
</span><div><div class="h5">> <a href="http://wiki.squid-cache.org/ConfigExamples/Intercept/Cisco2501PolicyRoute" target="_blank">http://wiki.squid-cache.org/ConfigExamples/Intercept/Cisco2501PolicyRoute</a><br>
><br>
><br>
<a href="http://wiki.squid-cache.org/ConfigExamples/Intercept/FreeBsdPf" target="_blank">http://wiki.squid-cache.org/ConfigExamples/Intercept/FreeBsdPf</a><br>
><br>
> 05.03.15 18:19, Monah Baki пишет:<br>
>> Hi all, can anyone verify if this is correct, need to make ure<br>
>> that users will be able to access the internet via the squid.<br>
><br>
>> Running FreeBSD with a single interface with Squid-3.5.2<br>
><br>
>> Policy based routing on Cisco with the following:<br>
><br>
><br>
>> interface GigabitEthernet0/0/1.1<br>
><br>
>> encapsulation dot1Q 1 native<br>
><br>
>> ip address 10.0.0.9 255.255.255.0<br>
><br>
>> no ip redirects<br>
><br>
>> no ip unreachables<br>
><br>
>> ip nat inside<br>
><br>
>> standby 1 ip 10.0.0.10<br>
><br>
>> standby 1 priority 120<br>
><br>
>> standby 1 preempt<br>
><br>
>> standby 1 name HSRP<br>
><br>
>> ip policy route-map CFLOW<br>
><br>
><br>
><br>
>> ip access-list extended REDIRECT<br>
><br>
>> deny tcp host 10.0.0.24 any eq www<br>
><br>
>> permit tcp host 10.0.0.23 any eq www<br>
><br>
><br>
><br>
>> route-map CFLOW permit 10<br>
><br>
>> match ip address REDIRECT set ip next-hop 10.0.0.24<br>
><br>
>> In my /etc/pf.conf rdr pass inet proto tcp from <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> to<br>
>> any port 80 -> 10.0.0.24 port 3129<br>
><br>
>> # block in pass in log quick on bge0 pass out log quick on bge0<br>
>> pass out keep state<br>
><br>
>> and finally in my squid.conf: http_port 3128 http_port 3129<br>
>> intercept<br>
><br>
><br>
><br>
>> And for testing purposes from the squid server: ./squidclient -h<br>
>> 10.0.0.24 -p 3128 <a href="http://www.freebsd.org/" target="_blank">http://www.freebsd.org/</a><br>
><br>
>> If I replace -p 3128 with -p 80, I get a access denied, and if I<br>
>> omit the -p 3128 completely, I can access the websites.<br>
><br>
>> tcpdump with (-p 3128)<br>
><br>
>> 13:15:02.681106 IP ISN-PHC-CACHE.44017 ><br>
>> wfe0.ysv.freebsd.org.http: Flags [.], ack 17377, win 1018,<br>
>> options [nop,nop,TS val 985588797 ecr 1054387720], length 0<br>
>> 13:15:02.681421 IP wfe0.ysv.freebsd.org.http ><br>
>> ISN-PHC-CACHE.44017: Flags [.], seq 17377:18825, ack 289, win<br>
>> 1040, options [nop,nop,TS val 1054387720 ecr 985588501], length<br>
>> 1448 13:15:02.681575 IP wfe0.ysv.freebsd.org.http ><br>
>> ISN-PHC-CACHE.44017: Flags [.], seq 18825:20273, ack 289, win<br>
>> 1040, options [nop,nop,TS val 1054387720 ecr 985588501], length<br>
>> 1448<br>
><br>
><br>
><br>
>> Did I miss anything?<br>
><br>
>> Thanks Monah<br>
><br>
><br>
><br>
>> _______________________________________________ squid-users<br>
>> mailing list <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
>> <a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
><br>
> _______________________________________________ squid-users mailing<br>
> list <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
> <a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
</div></div>iQEcBAEBAgAGBQJU+F2gAAoJENNXIZxhPexGivEH/jh0uoMFUNiqROuSVfnCbd4F<br>
pzcgm//4M3CRFCCGYT+u7VA14Uw5EPz/3vIiOQZFWrZLt9zZdtIlHqPA0ucBi5U5<br>
cfHwlOhAXWMihM0gUYCATWit6c+cY9bvFS9wHzav9RJK8aRFWGczBhPLfFMGV8/y<br>
WTgnCh3ViR3ZjilLhM3MB1nd4pNzn01BM9X3rteGu5d1zh6hznyEIqMAzUXFcBeF<br>
cnsWPnXkhU/r13X7zk0K6nF9tSaSIvbYJQaTWRl5DvkYVwQgCcPUwQ5yleWh70Ex<br>
MycgylzjEqCAO4rqpYwV/v8/meb8+QzgK3e1KFRXDz91/zUz8LGO0ns7LzhAKFM=<br>
=ZRtj<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br></div>