Community discussions

MikroTik App
 
User avatar
azurtem
Trainer
Trainer
Topic Author
Posts: 217
Joined: Mon May 16, 2011 5:35 pm
Location: Nice, France
Contact:

RouterOS & Squid (RB450)

Mon Jan 27, 2014 3:28 pm

Hi

I have a client who is situated too far way from the
closest ADSL DSLAM. There isn't any 3G or 4G coverage
either. His ADSL bandwidth is: 1.1Mbps/0.6Mbps.

I suggested we take the satellite route and they are now
using NordNet/TooWay (Orange) 12Mbps/4Mbps.

Unfortunately the latency and frequent link disruptions
are not making this option very attractive to their clients.

I am contemplating adding Squid to a small Debian box which
is already collecting log data (MySQL).

Because of the limited number of connectors on the RB450,
I have had to connect this linux box as shown below.

Image

Though on different subnets the linux box and Zyxel can see
each other.

I have set the linux box's default gateway as the RB450
(192.168.150.5).

From what I understand, I must enable the Web proxy on the
RB450 and specify the linux box as 'parent' proxy.

I also read somewhere that I could use the NAT masquerade
rule to redirect http traffic to squid.

I guess I'll have to setup a mangle rule to redirect the returning
http squid traffic in order to have it sent via the SAT link.

Any ideas, suggestions caveats ?

thanks

yann
 
User avatar
aacable
Member
Member
Posts: 431
Joined: Wed Sep 17, 2008 11:58 am
Location: ISLAMIC Republic of PAKISTAN
Contact:

Re: RouterOS & Squid (RB450)

Tue Jan 28, 2014 11:49 am

you can redirect http traffic from your rb450 box to squid using dst-nat rule,
squid can be configured with single lan interface too, just define default gateway of Squid pointing to Mikrotik. and in mikrotik create a NAT rule rule to allow traffic from the squid to be masqueraded.
many examples on the blogs and forums are present.
_____________
Regard's

Syed Jahanzaib
Web: http://aacable.wordpress.com
Email: aacable [at] hotmail.com
 
kilrathi
just joined
Posts: 5
Joined: Tue Jan 07, 2014 5:32 am

Re: RouterOS & Squid (RB450)

Tue Jan 28, 2014 7:02 pm

I have an external proxy for my users as well. In this post I listed a few things i manged to do in order to redirect my users to the proxy server transparently. You do not have to use the build in web proxy on the mikrotik device. In my case I didn't want to spend the extra CPU power on my mikrotik for proxy services plus the redirect to a parent proxy. I just tag all the port 80 traffic with mangle and route it directly to the external squid proxy server (mikrotik web proxy is disabled).

Your setup is a little different than mine. Your squid proxy is on a different interface / lan than your users. The setup should be the same though. Again check out this post and see if it fits into what your looking to do.
 
User avatar
azurtem
Trainer
Trainer
Topic Author
Posts: 217
Joined: Mon May 16, 2011 5:35 pm
Location: Nice, France
Contact:

Re: RouterOS & Squid (RB450)

Wed Jan 29, 2014 2:16 pm

Thank you both for your prompt replies
I will check them both out
cheers
yann

Who is online

Users browsing this forum: Majestic-12 [Bot], mike7 and 120 guests