/ip firewall nat
add chain=srcnat action=masquerade src-address=192.168.10.0/29
add chain=srcnat action=src-nat to-addresses=172.16.10.2 to-ports=0-65535 protocol=tcp connection-mark=even
add chain=srcnat action=src-nat to-addresses=172.16.100.2 to-ports=0-65535 protocol=tcp connection-mark=odd
add chain=srcnat action=masquerade out-interface=wan1
add chain=srcnat action=masquerade out-interface=wan2
/ip firewall mangle
add chain=prerouting action=mark-connection new-connection-mark=odd passthrough=yes connection-state=new in-interface=lan nth=10,1
add chain=prerouting action=mark-routing new-routing-mark=odd passthrough=no in-interface=lan connection-mark=odd
add chain=prerouting action=mark-connection new-connection-mark=even passthrough=yes connection-state=new in-interface=lan nth=11,1
add chain=prerouting action=mark-routing new-routing-mark=even passthrough=no in-interface=lan connection-mark=even
Tidak ada komentar:
Posting Komentar