Mikrotik Setup Load Balanced Mangle

Bexis Security & Technology Systems

Mikrotik Setup Load Balanced Mangle

/ip firewall mangle

add action=accept chain=prerouting dst-address-list=Private-Lans \
src-address-list=Private-Lans

ΓΙΑ ΝΑ ΜΠΑΙΝΕΙ IP ΠΑΝΤΑ ΑΠΟ ΤΟ ΙΔΙΟ ROUTER ΣΤΟ LOAD BALANCE
add action=mark-connection chain=forward connection-state=new in-interface=\
ether1 new-connection-mark=pfw1 passthrough=no
add action=mark-connection chain=forward connection-state=new in-interface=\
ether2v new-connection-mark=pfw2 passthrough=no
add action=mark-routing chain=prerouting connection-mark=pfw1 in-interface=\
br.lan new-routing-mark=wan1 passthrough=no
add action=mark-routing chain=prerouting connection-mark=pfw2 in-interface=\
br.lan new-routing-mark=wan2 passthrough=no
add action=mark-routing chain=output connection-mark=isp1 new-routing-mark=\
wan1 passthrough=no
add action=mark-routing chain=output connection-mark=isp2 new-routing-mark=\
wan2 passthrough=no

LOAD BALANCE
add action=mark-connection chain=prerouting connection-mark=no-mark \
connection-state=new dst-address-type=!local in-interface=br.lan \
new-connection-mark=isp1 passthrough=yes per-connection-classifier=\
both-addresses:2/0
add action=mark-connection chain=prerouting connection-mark=no-mark \
connection-state=new dst-address-type=!local in-interface=br.lan \
new-connection-mark=isp2 passthrough=yes per-connection-classifier=\
both-addresses:2/1
add action=mark-connection chain=input connection-state=new in-interface=\
ether1 new-connection-mark=isp1 passthrough=yes
add action=mark-connection chain=input connection-state=new in-interface=\
ether2v new-connection-mark=isp2 passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark \
connection-state=new in-interface=ether1 new-connection-mark=isp1 \
passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark \
connection-state=new in-interface=ether2v new-connection-mark=isp2 \
passthrough=yes
add action=mark-routing chain=prerouting connection-mark=isp1 in-interface=\
br.lan new-routing-mark=wan1 passthrough=no
add action=mark-routing chain=prerouting connection-mark=isp2 in-interface=\
br.lan new-routing-mark=wan2 passthrough=no


Διαβάστε εδώ περισσότερα how to

About Author

Ασφαλίστε κι εσείς την περιουσία σας με συστήματα της BST Systems