Community discussions

 
beny30
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Aug 26, 2008 2:13 pm

Help with external Squid Proxy with Ubuntu

Wed Mar 04, 2009 10:39 am

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
 
GuJack20
Trainer
Trainer
Posts: 322
Joined: Sat Jun 12, 2004 9:44 pm
Location: Tirana
Contact:

Re: Help with external Squid Proxy with Ubuntu

Wed Mar 04, 2009 11:06 am

"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.
--Do you remember that guy who gave up? Neither does anybody else!
 
beny30
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Aug 26, 2008 2:13 pm

Re: Help with external Squid Proxy with Ubuntu

Mon Mar 09, 2009 12:30 pm

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?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24268
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Help with external Squid Proxy with Ubuntu

Mon Mar 09, 2009 1:50 pm

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
No answer to your question? How to write posts
 
a4ubd
newbie
Posts: 26
Joined: Sun Jun 01, 2008 12:08 pm

Re: Help with external Squid Proxy with Ubuntu

Thu May 28, 2009 1:13 pm

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
 
beny30
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Aug 26, 2008 2:13 pm

Re: Help with external Squid Proxy with Ubuntu

Sun Jun 07, 2009 4:59 pm

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.
 
pokeman
Member Candidate
Member Candidate
Posts: 136
Joined: Fri Jun 05, 2009 10:52 pm

Re: Help with external Squid Proxy with Ubuntu

Thu Jun 11, 2009 12:48 pm

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
 
gbacteke
just joined
Posts: 3
Joined: Mon Jun 22, 2009 10:37 pm

Re: Help with external Squid Proxy with Ubuntu

Tue Jun 23, 2009 12:18 am

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
You do not have the required permissions to view the files attached to this post.
 
a4ubd
newbie
Posts: 26
Joined: Sun Jun 01, 2008 12:08 pm

Re: Help with external Squid Proxy with Ubuntu

Fri Jul 10, 2009 6:40 pm

Hi Forum,

Any good doc abt caching video?

Regards,

a4ubd

Who is online

Users browsing this forum: Google [Bot] and 109 guests