Community discussions

MikroTik App
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

Persistent user connections With Web Proxy enabled possible?

Fri Nov 04, 2011 1:08 am

I am load balancing between two adsl lines.
I have set equal cost gateways
 /ip route add dst-address=0.0.0.0/0 gateway=10.0.0.12,10.0.0.13 \
routing-mark=ecmp-http-route 
then i do as per the instructions on the mikrotik wiki (http://wiki.mikrotik.com/wiki/ECMP_load ... masquerade)

OK that works fine, but i want to use the mikrotik web proxy and when i setup the proxy the problem is that users do not have a persistent session and this causes problems.

Now, is it possible to have persistent user connections while having the Web Proxy enabled?

Here is my current config:
/ip route
add check-gateway=ping comment="Default Route" disabled=no distance=1 \
    dst-address=0.0.0.0/0 gateway=10.0.11.22,10.0.12.27 scope=30 \
    target-scope=10
/ip firewall nat
add action=masquerade chain=srcnat comment="" disabled=no out-interface=\
    ether1
add action=masquerade chain=srcnat comment="" disabled=no out-interface=\
    ether3
add action=redirect chain=dstnat comment="" disabled=no dst-port=80 protocol=tcp to-ports=3129

this is currently working to load balance, but the client's WAN ip is changing every time. and this logs him out of pages etc and causes email issues etc etc.
How do i work around this?

Who is online

Users browsing this forum: Babujnik, Bing [Bot] and 99 guests