<div dir="ltr"><br><div><br>PORT   STATE SERVICE VERSION<br>23/tcp open  telnet  Cisco IOS telnetd<br>MAC Address: 88:5A:92:63:77:81 (Cisco)<br>Device type: router<br>Running: Cisco IOS 12.X<br>OS CPE: cpe:/h:cisco:7600_router cpe:/o:cisco:ios:12.2<br>OS details: Cisco 7600 router (IOS 12.2)<br>Network Distance: 1 hop<br>TCP Sequence Prediction: Difficulty=258 (Good luck!)<br>IP ID Sequence Generation: Randomized<br>Service Info: OS: IOS; Device: switch; CPE: cpe:/o:cisco:ios<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 9:31 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>What is Cisco model and iOS version?<br>
<br>
05.03.15 20:25, Monah Baki пишет:<br>
<span class="">> Yes, correct<br>
><br>
> On Thu, Mar 5, 2015 at 9:23 AM, Yuri Voinov <<a href="mailto:yvoinov@gmail.com">yvoinov@gmail.com</a>><br>
> wrote:<br>
><br>
</span><div><div class="h5">> 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' '--enable-follow-x-forwarded-for'<br>
>>>> '--with-large-files' '--enable-ssl' '--disable-ipv6'<br>
>>>> '--enable-esi' '--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' '--enable-pf-transparent'<br>
>>>> '--with-nat-devpf' --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 correct, need to<br>
>>>>>>> make ure that users will be able to access the internet<br>
>>>>>>> via the squid.<br>
>>>>>>><br>
>>>>>>> Running FreeBSD with a single interface with<br>
>>>>>>> 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<br>
>>>>>>> <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> to any port 80 -> 10.0.0.24 port 3129<br>
>>>>>>><br>
>>>>>>> # block in pass in log quick on bge0 pass out log quick<br>
>>>>>>> on bge0 pass out keep state<br>
>>>>>>><br>
>>>>>>> and finally in my squid.conf: http_port 3128 http_port<br>
>>>>>>> 3129 intercept<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> And for testing purposes from the squid server:<br>
>>>>>>> ./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 access denied,<br>
>>>>>>> and if I omit the -p 3128 completely, I can access the<br>
>>>>>>> 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<br>
>>>>>>> 1018, options [nop,nop,TS val 985588797 ecr<br>
>>>>>>> 1054387720], length 0 13:15:02.681421 IP<br>
>>>>>>> wfe0.ysv.freebsd.org.http > ISN-PHC-CACHE.44017: Flags<br>
>>>>>>> [.], seq 17377:18825, ack 289, win 1040, options<br>
>>>>>>> [nop,nop,TS val 1054387720 ecr 985588501], length 1448<br>
>>>>>>> 13:15:02.681575 IP wfe0.ysv.freebsd.org.http ><br>
>>>>>>> ISN-PHC-CACHE.44017: Flags [.], seq 18825:20273, ack<br>
>>>>>>> 289, win 1040, options [nop,nop,TS val 1054387720 ecr<br>
>>>>>>> 985588501], length 1448<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> Did I miss anything?<br>
>>>>>>><br>
>>>>>>> Thanks Monah<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>
>>>>> squid-users 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>
>>>><br>
>><br>
><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
</div></div>iQEcBAEBAgAGBQJU+Gi2AAoJENNXIZxhPexG5ZsH/jmkZq8gHsA0LSfGBS4PcIb8<br>
fghHqg00FH48WqCWo4WtagehI1MFU7wdtxERhDJWyO2a3kaOg6i8BfWgC0Cnu3WX<br>
AMRMs8z2f2Foz9o1UgLMb3LLLQOuXjioCHq0RKFaW5TD70Fqk14CHNCDOSTaHEMv<br>
e/65hh4aGek1f5wxAGCfPGoX7tTtiH0DZ/XBZ7YOlAqrl0wcAYLI+1gTq2zOk98Y<br>
Q6zu9whBqKeZvBXMxu8aLyxan3RZcGDeSDlF89l+jwNw+6enHgVElsU22+1eQ54P<br>
IxmIAaJEbNmSFisj1wb+XRV5SsdjN8etQcBgh5rCz4TWqh9UgsW1K2BonLH4yns=<br>
=hEYd<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br></div>