Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mikrotik_Dual ISP
/ip fi mangle
add action=mark-connection chain=input comment=LB disabled=no dst-address-list=\
!speedy2 in-interface=ether1 new-connection-mark=speedy1_conn \
passthrough=yes src-address-type=""
add action=mark-connection chain=input disabled=no dst-address-list=!speedy1 \
dst-address-type="" in-interface=ether2 new-connection-mark=\
speedy2_conn passthrough=yes
add action=mark-routing chain=output connection-mark=speedy2_conn disabled=no \
new-routing-mark=to_speedy2 passthrough=yes
add action=mark-routing chain=output connection-mark=speedy1_conn disabled=no \
new-routing-mark=to_Speedy1 passthrough=yes
add action=mark-connection chain=prerouting disabled=no dst-address-list=!Lokal \
in-interface=Client new-connection-mark=speedy1_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting disabled=no dst-address-list=!Lokal \
in-interface=Client new-connection-mark=speedy2_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting connection-mark=speedy1_Conn disabled=no \
in-interface=Client new-routing-mark=to_speedy1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=speedy2_Conn disabled=no \
in-interface=Client new-routing-mark=to_speedy2 passthrough=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.