Community discussions

MikroTik App
 
teandr
just joined
Topic Author
Posts: 1
Joined: Wed Feb 29, 2012 4:09 pm

Mikrotik Load Balance and Web Proxy

Thu Mar 01, 2012 5:45 am

Good day!
I use a load balancing as follows.
And it works fine.

Image
/iterface detail

 address=178.49.xxx.xxx/26 network=178.49.xxx.xxx interface=ether1 actual-interface=ether1 #/default route

 address=178.49.xxx.xxx/26 network=178.49.xxx.xxx interface=ether2 actual-interface=ether2 

 address=192.168.0.1/24 network=192.168.0.0 interface=ether3 actual-interface=ether3 

/ip firewall address-list
add address=192.168.0.7 disabled=no list=WAN2
add address=192.168.0.8 disabled=no list=WAN2
add address=192.168.0.9 disabled=no list=WAN2
add address=192.168.0.10 disabled=no list=WAN2
add address=192.168.0.11 disabled=no list=WAN2
add address=192.168.0.12 disabled=no list=WAN2

/ip firewall mangle
add action=mark-routing chain=prerouting disabled=no new-routing-mark=markWAN2 passthrough=no \
    src-address-list=WAN2

/ip firewall nat
add action=masquerade chain=srcnat disabled=no
add action=masquerade chain=srcnat disabled=no src-address-list=WAN2

/route detail
dst-address=0.0.0.0/0 gateway=178.49.xxx.xxx gateway-status=178.49.xxx.xxx reachable ether1 
        distance=0 scope=30 target-scope=10 vrf-interface=ether1

  dst-address=0.0.0.0/0 gateway=178.49.xxx.xxx 
        gateway-status=178.49.xxx.xxx reachable ether2 distance=1 scope=30 target-scope=10 
        routing-mark=markWAN2
I want to implement the Web Proxy. Turn it on.

Image

New Rule.
add action=redirect chain=dstnat disabled=no dst-port=80 protocol=tcp to-ports=3128
And load balancing not work. All traffic goes through the interface exposed by default (ether1).

Can you please tell how to configure the proxy to maintain load balancing?
I have the feeling that the marking of traffic is not retained after going through a proxy.
If this is not possible by means of Mikrotik, I can use an external proxy server (Squid Linux). How to implement it?
Thanks in advance. Any advice would be greatly appreciated.
 
vik1988
Member Candidate
Member Candidate
Posts: 235
Joined: Sun Oct 25, 2009 2:18 pm
Location: India

Re: Mikrotik Load Balance and Web Proxy

Thu Mar 01, 2012 7:28 pm

Who is online

Users browsing this forum: gigabyte091, Google [Bot], raiser and 76 guests