اتاكد من حذف السكربتات السابقه في الفيرول ثم ضع السكربت
/interface
set ether1 name=WAN1
set ether2 name=WAN2
set ether3 name=WAN3
set ether4 name=WAN4
set ether5 name=Local
/ ip address
add address=192.168.88.1/24 interface=Local comment=OUT
add address=192.168.1.5/24 interface=WAN1 comment=Line1
add address=192.168.2.5/24 interface=WAN2 comment=Line2
add address=192.168.3.5/24 interface=WAN3 comment=Line3
add address=192.168.4.5/24 interface=WAN4 comment=Line4
/ip firewall mangle
add action=accept chain=prerouting disabled=no in-interface=WAN1
add action=accept chain=prerouting disabled=no in-interface=WAN2
add action=accept chain=prerouting disabled=no in-interface=WAN3
add action=accept chain=prerouting disabled=no in-interface=WAN4
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local \
new-connection-mark=wan1_conn passthrough=yes per-connection-classifier=\
both-addresses-and-ports:4/0 src-address=192.168.88.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local \
new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=\
both-addresses-and-ports:4/1 src-address=192.168.88.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local \
new-connection-mark=wan3_conn passthrough=yes per-connection-classifier=\
both-addresses-and-ports:4/2 src-address=192.168.88.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local \
new-connection-mark=wan4_conn passthrough=yes per-connection-classifier=\
both-addresses-and-ports:4/3 src-address=192.168.88.0/24
add action=mark-routing chain=prerouting connection-mark=wan1_conn disabled=no \
new-routing-mark=to_wan1 passthrough=yes src-address=192.168.88.0/24
add action=mark-routing chain=prerouting connection-mark=wan2_conn disabled=no \
new-routing-mark=to_wan2 passthrough=yes src-address=192.168.88.0/24
add action=mark-routing chain=prerouting connection-mark=wan3_conn disabled=no \
new-routing-mark=to_wan3 passthrough=yes src-address=192.168.88.0/24
add action=mark-routing chain=prerouting connection-mark=wan4_conn disabled=no \
new-routing-mark=to_wan4 passthrough=yes src-address=192.168.88.0/24
/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=WAN1 \
src-address=192.168.88.0/24
add action=masquerade chain=srcnat disabled=no out-interface=WAN2 \
src-address=192.168.88.0/24
add action=masquerade chain=srcnat disabled=no out-interface=WAN3 \
src-address=192.168.88.0/24
add action=masquerade chain=srcnat disabled=no out-interface=WAN4 \
src-address=192.168.88.0/24
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.1.1 routing-mark=to_wan1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.2.1 routing-mark=to_wan2 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.3.1 routing-mark=to_wan3 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.4.1 routing-mark=to_wan4 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.1.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
192.168.2.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=3 dst-address=0.0.0.0/0 gateway=\
192.168.3.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=4 dst-address=0.0.0.0/0 gateway=\
192.168.4.1 scope=30 target-scope=10
/system identity
set name="gobran735722322)"
