You are on page 1of 1

/ip address

add address= 192.168.0.10/24 interface= UNE1


add address= 192.168.0.1/24 interface= UNE2
add address= 192.168.30.1/24 interface= LAN
add address= 192.168.20.1/24 interface= LAN

/ip router
add gateway=192.168.0.254%UNE1 routing-mark=uno
add gateway=192.168.0.254%UNE2 routing-mark=dos

/ip firewall nat

add action=masquerade chain=srcnat out-interface=UNE1


add action=masquerade chain=srcnat out-interface=UNE2

/ip firewall mangle

add action=mark-routing chain=prerouting src-address=192.168.30.0/24 new-routing-


mark=uno
add action=mark-routing chain=prerouting src-address=192.168.20.0/24 new-routing-
mark=dos

add action=mark-routing chain=prerouting src-address=192.168.30.0/24 new-routing-


mark=dos
add action=mark-routing chain=prerouting src-address=192.168.20.0/24 new-routing-
mark=uno

You might also like