hi all,
I have 2 wan line (speedy1 and speedy2). if I set transparant proxy all client go to default route (speedy2).
How to set client in group1 go to transparent proxy and out to wan1,
and client in group2 go to transparent proxy and out to wan2
my microtik ver is 2.9.27
here is the configuration:
wan..............192.168.1.100/24
speedy1 --------------|..................................|-------------clients (group1) 192.168.100.0/25
........................| 192.168.100.1/24........|
.................. microtik proxy --------------switch
wan.................. |................................|
speedy2---------------|..................................|------------- clients (group2) 192.168.100.128/25
.................192.168.2.100/24
---Mangle---
[admin@MikroTik] > ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; Group A untuk speedy1
chain=prerouting src-address=192.168.100.0/26 action=mark-routing
new-routing-mark=speedy1 passthrough=yes
1 ;;; Group B untuk speedy2
chain=prerouting src-address=192.168.100.64/26 action=mark-routing
new-routing-mark=speedy2 passthrough=yes
----ip route-----
[admin@MikroTik] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADC 192.168.1.0/24 192.168.1.100 speedy1
1 ADC 192.168.2.0/24 192.168.2.100 speedy2
2 ADC 192.168.100.0/24 192.168.100.1 lan
3 A S 0.0.0.0/0 r 192.168.2.1 speedy2
4 A S 0.0.0.0/0 r 192.168.1.2 speedy1
5 A S 0.0.0.0/0 r 192.168.2.1 speedy2
[admin@MikroTik] >
---nat----
[admin@MikroTik] > ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat out-interface=speedy1 action=masquerade
1 chain=srcnat out-interface=speedy2 action=masquerade
2 chain=dstnat in-interface=lan src-address=192.168.100.0/24 protocol=tcp dst-port=80 action=redirect
to-ports=3128
[admin@MikroTik] >