Citação:
add chain=prerouting src-address-list=odd in-interface=Cliente action=mark-connection \
new-connection-mark=odd passthrough=yes
add chain=prerouting src-address-list=odd in-interface=Cliente action=mark-routing \
new-routing-mark=odd passthrough=no
add chain=prerouting src-address-list=even in-interface=Cliente action=mark-connection \
new-connection-mark=even passthrough=yes
add chain=prerouting src-address-list=even in-interface=Cliente action=mark-routing \
new-routing-mark=even passthrough=no
add chain=prerouting in-interface=Cliente connection-state=new nth=1,1,0 \
action=mark-connection new-connection-mark=odd passthrough=yes
add chain=prerouting in-interface=Cliente action=add-src-to-address-list \
address-list=odd address-list-timeout=1d connection-mark=odd passthrough=yes
add chain=prerouting in-interface=Cliente connection-mark=odd action=mark-routing \
new-routing-mark=odd passthrough=no
add chain=prerouting in-interface=Cliente connection-state=new nth=1,1,1 \
action=mark-connection new-connection-mark=even passthrough=yes
add chain=prerouting in-interface=Cliente action=add-src-to-address-list \
address-list=even address-list-timeout=1d connection-mark=even passthrough=yes
add chain=prerouting in-interface=Cliente connection-mark=even action=mark-routing \
new-routing-mark=even passthrough=no
Citação:
/ ip firewall mangle
add chain=prerouting action=mark-connection new-connection-mark=odd passthrough=yes in-interface=Cliente \
src-address-list=odd comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark=odd passthrough=no in-interface=Cliente src-address-list=odd \
comment="" disabled=no
add chain=prerouting action=mark-connection new-connection-mark=even passthrough=yes in-interface=Cliente \
src-address-list=even comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark=even passthrough=no in-interface=Cliente src-address-list=even \
comment="" disabled=no
add chain=prerouting action=mark-connection new-connection-mark=odd passthrough=yes connection-state=new \
in-interface=Cliente nth=1,1,0 comment="" disabled=no
add chain=prerouting action=add-src-to-address-list in-interface=Cliente connection-mark=odd address-list=odd \
address-list-timeout=1d comment="" disabled=no
Citação:
/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.0.1 distance=1 scope=255 target-scope=10 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.0.1 distance=1 scope=255 target-scope=10 routing-mark=odd comment="" \
disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=1 scope=255 target-scope=10 routing-mark=even comment="" \
disabled=no
Vlw