/ip firewall mangle
add action=accept chain=prerouting in-interface=ether1
add action=accept chain=prerouting in-interface=ether2
add action=mark-connection chain=prerouting dst-address-type=!local \
new-connection-mark=wan1_conn passthrough=yes per-connection-classifier=\
both-addresses-and-ports:3/0 src-address=192.168.2.0/24
add action=mark-connection chain=prerouting dst-address-type=!local \
new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=\
both-addresses-and-ports:3/1 src-address=192.168.2.0/24
add action=mark-connection chain=prerouting dst-address-type=!local \
new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=\
both-addresses-and-ports:3/1 src-address=192.168.2.0/24
add action=mark-routing chain=prerouting connection-mark=wan1_conn \
new-routing-mark=to_wan1 passthrough=yes src-address=192.168.2.0/24
add action=mark-routing chain=prerouting connection-mark=wan2_conn \
new-routing-mark=to_wan2 passthrough=yes src-address=192.168.2.0/24
add action=mark-connection chain=prerouting dst-address-type=!local \
/ip firewall nat
add action=masquerade chain=srcnat dst-address-type=!local out-interface=\
ether1
add action=masquerade chain=srcnat dst-address-type=!local out-interface=\
ether2
/ip route
add check-gateway=ping distance=1 gateway=192.168.0.1 routing-mark=to_wan1
add check-gateway=ping distance=2 gateway=192.168.1.1 routing-mark=to_wan2
add check-gateway=ping distance=1 gateway=192.168.0.1
add check-gateway=ping distance=2 gateway=192.168.1.1
ความคิดเห็น
แสดงความคิดเห็น
ติดต่อสอบถามได้ที่ Email : warut.ruk@gmail.com