<div dir="ltr"><div>root@ISN-PHC-CACHE:/cache/squid/bin # tcpdump -n -e -ttt -i pflog0<br>tcpdump: WARNING: pflog0: no IPv4 address assigned<br>tcpdump: verbose output suppressed, use -v or -vv for full protocol decode<br>listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 65535 bytes<br>capability mode sandbox enabled<br>00:00:00.000000 rule 0..16777216/0(match): pass in on bge0: 10.0.0.106.5678 > 255.255.255.255.5678: UDP, length 88<br>00:00:08.342860 rule 0..16777216/0(match): pass in on bge0: 10.0.0.14.54264 > 10.0.0.24.22: Flags [S], seq 3823043622, win 8192, options [mss 1460,nop,wscale 2,nop,nop,sackOK], length 0<br><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 10:20 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>Hm. No.<br>
<br>
We not checked only OS.<br>
<br>
Does your BSD really loads PF module?<br>
<br>
05.03.15 21:16, Monah Baki пишет:<br>
<span class="">> Not sure why the client is running old hard/soft ware, could it be<br>
> cause of the hardware? Is FreeBSD an issue, should I switch to<br>
> linux?<br>
><br>
> On Thu, Mar 5, 2015 at 10:14 AM, Yuri Voinov <<a href="mailto:yvoinov@gmail.com">yvoinov@gmail.com</a>><br>
> wrote:<br>
><br>
</span><div><div class="h5">> Wow, 7600!<br>
><br>
> But why is so antique iOS?! Current is 15.4<br>
><br>
> 05.03.15 21:09, Monah Baki пишет:<br>
>>>> PORT STATE SERVICE VERSION 23/tcp open telnet Cisco IOS<br>
>>>> telnetd MAC Address: 88:5A:92:63:77:81 (Cisco) Device type:<br>
>>>> router Running: Cisco IOS 12.X OS CPE:<br>
>>>> cpe:/h:cisco:7600_router cpe:/o:cisco:ios:12.2 OS details:<br>
>>>> Cisco 7600 router (IOS 12.2) Network Distance: 1 hop TCP<br>
>>>> Sequence Prediction: Difficulty=258 (Good luck!) IP ID<br>
>>>> Sequence Generation: Randomized Service Info: OS: IOS;<br>
>>>> Device: switch; CPE: cpe:/o:cisco:ios<br>
>>>><br>
>>>><br>
>>>> On Thu, Mar 5, 2015 at 9:31 AM, Yuri Voinov<br>
>>>> <<a href="mailto:yvoinov@gmail.com">yvoinov@gmail.com</a>> wrote:<br>
>>>><br>
>>>> What is Cisco model and iOS version?<br>
>>>><br>
>>>> 05.03.15 20:25, Monah Baki пишет:<br>
>>>>>>> Yes, correct<br>
>>>>>>><br>
>>>>>>> On Thu, Mar 5, 2015 at 9:23 AM, Yuri Voinov<br>
>>>>>>> <<a href="mailto:yvoinov@gmail.com">yvoinov@gmail.com</a>> wrote:<br>
>>>>>>><br>
>>>>>>> 10.0.0.23 is your host? And 10.0.0.24 is proxy box?<br>
>>>>>>><br>
>>>>>>> 05.03.15 20:15, Monah Baki пишет:<br>
>>>>>>>>>> '--prefix=/cache/squid'<br>
>>>>>>>>>> '--enable-follow-x-forwarded-for'<br>
>>>>>>>>>> '--with-large-files' '--enable-ssl'<br>
>>>>>>>>>> '--disable-ipv6' '--enable-esi'<br>
>>>>>>>>>> '--enable-kill-parent-hack' '--enable-snmp'<br>
>>>>>>>>>> '--with-pthreads' '--with-filedescriptors=65535'<br>
>>>>>>>>>> '--enable-cachemgr-hostname=hostname'<br>
>>>>>>>>>> '--enable-storeio=ufs,aufs,diskd,rock'<br>
>>>>>>>>>> '--enable-ipfw-transparent'<br>
>>>>>>>>>> '--enable-pf-transparent' '--with-nat-devpf'<br>
>>>>>>>>>> --enable-ltdl-convenience<br>
>>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>><br>
>>>>>>>>>> On Thu, Mar 5, 2015 at 9:14 AM, Yuri Voinov<br>
>>>>>>>>>> <<a href="mailto:yvoinov@gmail.com">yvoinov@gmail.com</a>> wrote:<br>
>>>>>>>>>><br>
>>>>>>>>>> This looking good too.<br>
>>>>>>>>>><br>
>>>>>>>>>> Stupid question:<br>
>>>>>>>>>><br>
>>>>>>>>>> With witch interception option squid builed?<br>
>>>>>>>>>><br>
>>>>>>>>>> I.e, squid -v?<br>
>>>>>>>>>><br>
>>>>>>>>>> 05.03.15 18:19, Monah Baki пишет:<br>
>>>>>>>>>>>>> Hi all, can anyone verify if this is<br>
>>>>>>>>>>>>> correct, need to make ure that users will<br>
>>>>>>>>>>>>> be able to access the internet via the<br>
>>>>>>>>>>>>> squid.<br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>> Running FreeBSD with a single interface<br>
>>>>>>>>>>>>> with Squid-3.5.2<br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>> Policy based routing on Cisco with the<br>
>>>>>>>>>>>>> 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<br>
>>>>>>>>>>>>> 10.0.0.24<br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>> In my /etc/pf.conf rdr pass inet proto tcp<br>
>>>>>>>>>>>>> from <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> to any port 80 -> 10.0.0.24<br>
>>>>>>>>>>>>> port 3129<br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>> # block in pass in log quick on bge0 pass<br>
>>>>>>>>>>>>> out log quick on bge0 pass out keep state<br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>> and finally in my squid.conf: http_port<br>
>>>>>>>>>>>>> 3128 http_port 3129 intercept<br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>> And for testing purposes from the squid<br>
>>>>>>>>>>>>> server: ./squidclient -h 10.0.0.24 -p 3128<br>
>>>>>>>>>>>>> <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<br>
>>>>>>>>>>>>> access denied, and if I omit the -p 3128<br>
>>>>>>>>>>>>> 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<br>
>>>>>>>>>>>>> 17377, win 1018, options [nop,nop,TS val<br>
>>>>>>>>>>>>> 985588797 ecr 1054387720], length 0<br>
>>>>>>>>>>>>> 13:15:02.681421 IP<br>
>>>>>>>>>>>>> wfe0.ysv.freebsd.org.http ><br>
>>>>>>>>>>>>> ISN-PHC-CACHE.44017: Flags [.], seq<br>
>>>>>>>>>>>>> 17377:18825, ack 289, win 1040, options<br>
>>>>>>>>>>>>> [nop,nop,TS val 1054387720 ecr 985588501],<br>
>>>>>>>>>>>>> length 1448 13:15:02.681575 IP<br>
>>>>>>>>>>>>> wfe0.ysv.freebsd.org.http ><br>
>>>>>>>>>>>>> ISN-PHC-CACHE.44017: Flags [.], seq<br>
>>>>>>>>>>>>> 18825:20273, ack 289, win 1040, options<br>
>>>>>>>>>>>>> [nop,nop,TS val 1054387720 ecr 985588501],<br>
>>>>>>>>>>>>> length 1448<br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>> Did I miss anything?<br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>> Thanks Monah<br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>> _______________________________________________<br>
>>>>>>>>>>>>><br>
>>>>>>>>>>>>><br>
squid-users mailing list<br>
>>>>>>>>>>>>> <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>
>>>>>>>>>>><br>
>>>>>>>>>>>>><br>
><br>
>>>>>>>>>>>>><br>
_______________________________________________<br>
>>>>>>>>>>> squid-users mailing list<br>
>>>>>>>>>>> <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>
>>>>>>>>>><br>
>>>>>>>><br>
>>>>>>><br>
>>>>><br>
>>>><br>
>><br>
><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
</div></div>iQEcBAEBAgAGBQJU+HQ9AAoJENNXIZxhPexGzdkIAJKlI1/eYSwBD/vqY1nk+nRr<br>
6PsBHLm8fVFU9iEOq+PXFOsm9F1L6Ak86+XI24BB/LYEzbrFGAIalu+BbZiS3dsR<br>
Ym9MkaiKfJEqNz7ajKzyydRB4t6MFULGrqQXJeYUH0zUraTB1iJwn1fyXEoyssKW<br>
4wet9JbFIbCZyNNzeXMHhpZ3bNy1/bbgHk+paBwJCCgvriiHW+Jn3L6Ppd0HvNXY<br>
QD5P3YQrUuPVYxjZtkMCEwigv5cqV3aOyn9NzMwwjLrGSfogK529gA22QK5NJiMV<br>
65yGags/Z++SfVTL+7MYnVOWkmYFExmMdIXHw9T4WZ8cMZQd2j3EkuiRw8EHf5M=<br>
=0UyO<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br></div>