Community discussions

MikroTik App
 
bledar
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Mon Nov 26, 2007 11:44 am
Location: Tirana/Albania

Redirect traffic

Sat Nov 20, 2010 4:39 pm

Hello!

I need to add Squid proxy for my clients. I must be in the same subnet with clients.
All requests that came to router, redirects to Squid.
Please, I need help on doing that on Mikrotik (not with parent proxy).

Thank you in advance!
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Redirect traffic

Sat Nov 20, 2010 6:10 pm

Add destination NAT rules that dst-nat HTTP traffic to the Squid box. You will also need to src-nat that traffic so that the proxy doesn't talk back directly to the client: http://wiki.mikrotik.com/wiki/Hairpin_NAT.

Generally speaking it would be cleaner if the proxy sat on a a dedicated network.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Redirect traffic

Mon Nov 22, 2010 10:50 am

I'd rather route port 80 to squid and do Redirect there :)
 
MCP
just joined
Posts: 1
Joined: Sat Dec 04, 2010 4:21 pm

Re: Redirect traffic

Sat Dec 04, 2010 4:43 pm

I am on same problem with RB411! and a cachebox.

The RB411 is my pppoe server . all things work well when NAT was in mikrotik.
for web analyzer and log users web surfing , disable nat in mikrotik and send all traffic to cache internal (invalid ) network card.

cachebox do nat itself. and have 2 lan with invalid and valid Ip address. it works well for lan user , and handle other cisco traffic to it. but trrafic do not go directly to cache , it go down and do not work.
now , I send all traffic from rb411 to one of my cisco router , and then redirect again from cisco with route-map command to cachebox! it work!
i know this is not true job. but why traffic redirecting from mikrotik to cachebox do not work?

my config is :
ip > route > add new route from 0.0.0.0 to 192.168.1.100 ( cache box ip address )

i use with mangle -preroute- and without , ( users ip is in 192.168.1.0 range ) . but no different. not work.

How can I send trrafic to my cache Directly from routerboard ?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Redirect traffic

Tue Dec 07, 2010 4:24 pm

should work. try to sniff - whether packets are coming to cachebox...

Who is online

Users browsing this forum: Bing [Bot] and 69 guests