Page 1 of 1

Help with external Squid Proxy with Ubuntu

Posted: Wed Mar 04, 2009 10:39 am
by beny30
I want to use Mikrotik and Squid Proxy to cache web pages and other content. Can any one help me how to connect them, which is the best and easy way to make them working? I have tried to connect squid on sepeate interface of Mikrotik dedicated for squid but does not work. I have pached Linux Kernel with ZHP, and Squid too with ZHP. When I use Squid in me Network connected to switch and by putting Squid IP in IE it works, but when I put squid with mikrotik it does not work. Mangle rule with DSCP of 12, My Mikrotik version is 3.18.

Mikrotik interfaces 3:
WAN
LAN
SQUID

Squid Interfaces 1:
Link to Mikrotik

Re: Help with external Squid Proxy with Ubuntu

Posted: Wed Mar 04, 2009 11:06 am
by GuJack20
"Patched the Linux Kernel with ZPH" ??? What does that mean? Zero Penalty Hit is a patch dedicated to squid, i don't think you can "patch" the kernel.

Re: Help with external Squid Proxy with Ubuntu

Posted: Mon Mar 09, 2009 12:30 pm
by beny30
I am not clear but as I understood Kernel to must be pached too, and squid too must be pached.
I have pached Kernel with ZPH patch, and Squid config with ZPH patch.

Check here to see it: http://zph.bratcheda.org/

But problems is what rules to make in Mikrotik to use squid like webproxy in Mikrotik?

Re: Help with external Squid Proxy with Ubuntu

Posted: Mon Mar 09, 2009 1:50 pm
by normis
just use "parent proxy" setting:
http://www.mikrotik.com/testdocs/ros/3.0/pnp/proxy.php

also watch this video about ZPH:
http://www.tiktube.com/index.php?video=95

Re: Help with external Squid Proxy with Ubuntu

Posted: Thu May 28, 2009 1:13 pm
by a4ubd
Hi forum,
I've the same scenario as beny30 did but in my case i'm using CentOS . I've pached the squid3.0 and got the ZPH directive in squid.conf file. Alone squid is working fine if i put the ip in the browser. By the way, i'm providing public ip to the user. At this moment how to mangle and redirect to squid and physical connectivity? As normis said about parent proxy that mean web proxy should also enabled in MK and use it as parent proxy for squid? Can anyone help abt the matter clearly?

Regards,

a4ubd

Re: Help with external Squid Proxy with Ubuntu

Posted: Sun Jun 07, 2009 4:59 pm
by beny30
I realize to setup Ubuntu + Squid but I can not limit speed for clients as I do in Mikrotik web proxy. I mean when clients get staf from Internet they to get in with their real speed, e.g. 512 but when to get staff from Squid (cache content) to get with other speed e.g. 1 M. In this case I tried to make many configurations but Squid gets a llot of traffic. It would be very good if we can setup it like in Mikrotik webproxy. Squid as proxy works perfectly and is efective I could say, I even set up cache videos and it works very well.

Re: Help with external Squid Proxy with Ubuntu

Posted: Thu Jun 11, 2009 12:48 pm
by pokeman
I realize to setup Ubuntu + Squid but I can not limit speed for clients as I do in Mikrotik web proxy. I mean when clients get staf from Internet they to get in with their real speed, e.g. 512 but when to get staff from Squid (cache content) to get with other speed e.g. 1 M. In this case I tried to make many configurations but Squid gets a llot of traffic. It would be very good if we can setup it like in Mikrotik webproxy. Squid as proxy works perfectly and is efective I could say, I even set up cache videos and it works very well.
check this wiki post http://wiki.mikrotik.com/wiki/External_ ... ct_ROS_2.9

squid+videocache+MT its work for me. i am using youtube caching without limits :D cheers

Re: Help with external Squid Proxy with Ubuntu

Posted: Tue Jun 23, 2009 12:18 am
by gbacteke
I want to use Mikrotik and Squid Proxy to cache web pages.

Mikrotik interfaces 3:
WAN: 201.xxx.xxx.xxx
LAN: 192.168.1.1
SQUID: 192.168.5.1

Squid Interfaces 1:
Link to Mikrotik : 192.168.5.2

I enabled in MK web proxy with option of parent proxy.
MK Ip->Firewall->NAT chain:srcnat, src-address:192.168.0.0/22, protocol:tcp, dstport:80, in-interface:LAN, action:redirect, to-port:3128
Mk IP->Firewall->NAT Chain:srcnat, src-address:192.168.0.0/22, out-interface: WAN, action:masquerade
Mk IP->Firewall->NAT Chain:srcnat, src-address:192.168.0.0/22, out-interface: WAN, action:masquerade

Is this correct?


All is ok but the problem is the traffic to WAN is always more what the traffic to LAN

Re: Help with external Squid Proxy with Ubuntu

Posted: Fri Jul 10, 2009 6:40 pm
by a4ubd
Hi Forum,

Any good doc abt caching video?

Regards,

a4ubd