Академический Документы
Профессиональный Документы
Культура Документы
/ip address
add address=192168.0.2/24 interface=ether1
add address=192168.1.2/24 interface=ether2
add address=192168.2.2/24 interface=ether3
/ip route
add gateway=192.168.0.1 check-gateway=ping distance=1
add gateway=192.168.1.1 check-gateway=ping distance=2
add gateway=192.168.2.1 check-gateway=ping distance=3
4. Configurando mangle, empieza la magia o los problemas para el que no
pone atención
4.1 Primera parte, todo lo que entre por un WAN, debe salir por el mismo
WAN.
/ip firewall mangle
#Parte A
add chain=prerouting in-interface=ether5 connection-state=new dst-address-
type=!local per-connection-classifier=both-addresses:4/0 action=mark-connection new-
connection-mark=ether1_conn passthrough=yes
#Parte B
add chain=prerouting in-interface=ether5 connection-mark=ether1_conn action=mark-
routing new-routing-mark=to_ether1 passthrough=yes