hi
i have 2 WAN and 1 LAN on mikrotik 750r
192.168.1.1 ether 1= wan 1- is internet
192.168.2.1 ether 2=wan 2 - is internet
192.168.10.2 ether 3= local- my office network
and dhcp on local is:
192.168.10.101-192.168.10.254 dns:8.8.8.8
and nat in firewall is:
wan 1 masquerade
wan 2 masquerad
now i want :
a user with an ip 192.168.10.124 should use WAN 1
a user with an ip 192.168.10.184 should use WAN 1
and The rest of the users should use WAN 2
i don’t want loadbalancing
please help me
Hello, it can look like this :
/ip firewall address-list
add address=192.168.10.124 list=Use_WAN1
add address=192.168.10.184 list=Use_WAN1
add address=192.168.10.0/24 list=Use_WAN2
/ip firewall mangle
add action=mark-routing chain=prerouting comment="Use WAN1" disabled=no log=no log-prefix="" new-routing-mark=To_WAN1 passthrough=no src-address-list=Use_WAN1
add action=mark-routing chain=prerouting comment="Use WAN2" disabled=no log=no log-prefix="" new-routing-mark=To_WAN2 passthrough=no src-address-list=Use_WAN2
/ip firewall nat
add action=masquerade chain=srcnat disabled=no log=no log-prefix="" out-interface=ether1 src-address=192.168.10.0/24
add action=masquerade chain=srcnat disabled=no log=no log-prefix="" out-interface=ether2 src-address=192.168.10.0/24
/ip route
add distance=1 gateway=192.168.1.1 routing-mark=To_WAN1
add distance=1 gateway=192.168.2.1 routing-mark=To_WAN2
Regards,