Dear all,
(the newbie want to ask something, sorry for posting in wrong sub topic)
I had problem with routing and packet marking, when my client downloading / uploading file type like (exe,jpeg,bmp) i want that’s file route to my gateway B, and other packet like browsing route to gateway A.
here is my script, ( something wrong with my script???): only for exefile i attached here
/ ip address
add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Local
add address=10.111.0.2/24 network=10.111.0.0 broadcast=10.111.0.255 interface=wlan2
add address=10.112.0.2/24 network=10.112.0.0 broadcast=10.112.0.255 interface=wlan1
/ip fire mangle
(exe file)
add chain=prerouting src-address-list=exefile in-interface=Local action=mark-connection new-connection-mark=exefile passthrough=yes
add chain=prerouting src-address-list=exefile in-interface=Local action=mark-routing new-routing-mark=exefile passthrough=no
add chain=prerouting in-interface=Local content=application/octet-stream action=mark-connection new-connection-mark=exefile passthrough=yes
add chain=prerouting in-interface=Local action=add-src-to-address-list address-list=exefile address-list-timeout=1d connection-mark=exefile passthrough=yes
add chain=prerouting in-interface=Local connection-mark=exefile action=mark-routing new-routing-mark=exefile passthrough=no
/ip firewall nat
add chain=srcnat connection-mark=exefile action=src-nat to-addresses=10.111.0.2 to-ports=0-65535
/ ip route
(for routing exe)
add dst-address=0.0.0.0/0 gateway=10.111.0.1 scope=255 target-scope=10 routing-mark=exefile
(for routing other packet)
add dst-address=0.0.0.0/0 gateway=10.112.0.1 scope=255 target-scope=10
Thanks for your help all