/interface
set ether1 name=WAN1
set ether2 name=WAN2
set ether3 name=WAN3
set ether4 name=WAN4
set ether5 name=WAN5
set ether6 name=WAN6
set ether7 name=WAN7
set ether8 name=WAN8
set ether9 name=WAN9
set ether10 name=WAN10
set ether11 name=WAN11
set ether12 name=WAN12
set ether13 name=Local
/ ip address
add address=192.168.88.1/24 interface=Local comment=OUT
add address=192.168.5.5/24 interface=WAN1 comment=Line1
add address=192.168.10.5/24 interface=WAN2 comment=Line2
add address=192.168.15.5/24 interface=WAN3 comment=Line3
add address=192.168.20.5/24 interface=WAN4 comment=Line4
add address=192.168.25.5/24 interface=WAN5 comment=Line5
add address=192.168.30.5/24 interface=WAN6 comment=Line6
add address=192.168.35.5/24 interface=WAN7 comment=Line7
add address=192.168.40.5/24 interface=WAN8 comment=Line8
add address=192.168.45.5/24 interface=WAN9 comment=Line9
add address=192.168.50.5/24 interface=WAN10 comment=Line10
add address=192.168.55.5/24 interface=WAN11 comment=Line11
add address=192.168.60.5/24 interface=WAN12 comment=Line12
/ ip firewall mangle
add chain=input in-interface=WAN1 action=mark-connection new-connection-mark=WAN1_conn
add chain=input in-interface=WAN2 action=mark-connection new-connection-mark=WAN2_conn
add chain=input in-interface=WAN3 action=mark-connection new-connection-mark=WAN3_conn
add chain=input in-interface=WAN4 action=mark-connection new-connection-mark=WAN4_conn
add chain=input in-interface=WAN5 action=mark-connection new-connection-mark=WAN5_conn
add chain=input in-interface=WAN6 action=mark-connection new-connection-mark=WAN6_conn
add chain=input in-interface=WAN7 action=mark-connection new-connection-mark=WAN7_conn
add chain=input in-interface=WAN8 action=mark-connection new-connection-mark=WAN8_conn
add chain=input in-interface=WAN9 action=mark-connection new-connection-mark=WAN9_conn
add chain=input in-interface=WAN10 action=mark-connection new-connection-mark=WAN10_conn
add chain=input in-interface=WAN11 action=mark-connection new-connection-mark=WAN11_conn
add chain=input in-interface=WAN12 action=mark-connection new-connection-mark=WAN12_conn
add chain=output connection-mark=WAN1_conn action=mark-routing new-routing-mark=WAN1
add chain=output connection-mark=WAN2_conn action=mark-routing new-routing-mark=WAN2
add chain=output connection-mark=WAN3_conn action=mark-routing new-routing-mark=WAN3
add chain=output connection-mark=WAN4_conn action=mark-routing new-routing-mark=WAN4
add chain=output connection-mark=WAN5_conn action=mark-routing new-routing-mark=WAN5
add chain=output connection-mark=WAN6_conn action=mark-routing new-routing-mark=WAN6
add chain=output connection-mark=WAN7_conn action=mark-routing new-routing-mark=WAN7
add chain=output connection-mark=WAN8_conn action=mark-routing new-routing-mark=WAN8
add chain=output connection-mark=WAN9_conn action=mark-routing new-routing-mark=WAN9
add chain=output connection-mark=WAN10_conn action=mark-routing new-routing-mark=WAN10
add chain=output connection-mark=WAN11_conn action=mark-routing new-routing-mark=WAN11
add chain=output connection-mark=WAN12_conn action=mark-routing new-routing-mark=WAN12
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/0 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/1 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/2 action=mark-connection new-connection-mark=WAN3_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/3 action=mark-connection new-connection-mark=WAN4_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/4 action=mark-connection new-connection-mark=WAN5_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/5 action=mark-connection new-connection-mark=WAN6_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/6 action=mark-connection new-connection-mark=WAN7_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/7 action=mark-connection new-connection-mark=WAN8_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/8 action=mark-connection new-connection-mark=WAN9_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/9 action=mark-connection new-connection-mark=WAN10_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/10 action=mark-connection new-connection-mark=WAN11_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:12/11 action=mark-connection new-connection-mark=WAN12_conn passthrough=yes
add chain=prerouting connection-mark=WAN1_conn in-interface=Local action=mark-routing new-routing-mark=WAN1
add chain=prerouting connection-mark=WAN2_conn in-interface=Local action=mark-routing new-routing-mark=WAN2
add chain=prerouting connection-mark=WAN3_conn in-interface=Local action=mark-routing new-routing-mark=WAN3
add chain=prerouting connection-mark=WAN4_conn in-interface=Local action=mark-routing new-routing-mark=WAN4
add chain=prerouting connection-mark=WAN5_conn in-interface=Local action=mark-routing new-routing-mark=WAN5
add chain=prerouting connection-mark=WAN6_conn in-interface=Local action=mark-routing new-routing-mark=WAN6
add chain=prerouting connection-mark=WAN7_conn in-interface=Local action=mark-routing new-routing-mark=WAN7
add chain=prerouting connection-mark=WAN8_conn in-interface=Local action=mark-routing new-routing-mark=WAN8
add chain=prerouting connection-mark=WAN9_conn in-interface=Local action=mark-routing new-routing-mark=WAN9
add chain=prerouting connection-mark=WAN10_conn in-interface=Local action=mark-routing new-routing-mark=WAN10
add chain=prerouting connection-mark=WAN11_conn in-interface=Local action=mark-routing new-routing-mark=WAN11
add chain=prerouting connection-mark=WAN12_conn in-interface=Local action=mark-routing new-routing-mark=WAN12
/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.5.1 routing-mark=WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.10.1 routing-mark=WAN2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.15.1 routing-mark=WAN3 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.20.1 routing-mark=WAN4 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.25.1 routing-mark=WAN5 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.30.1 routing-mark=WAN6 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.35.1 routing-mark=WAN7 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.40.1 routing-mark=WAN8 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.45.1 routing-mark=WAN9 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.50.1 routing-mark=WAN10 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.55.1 routing-mark=WAN11 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.60.1 routing-mark=WAN12 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.5.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.10.1 distance=2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.15.1 distance=3 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.20.1 distance=4 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.25.1 distance=5 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.30.1 distance=6 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.35.1 distance=7 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.40.1 distance=8 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.45.1 distance=9 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.50.1 distance=10 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.55.1 distance=11 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.60.1 distance=12 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=WAN1 action=masquerade
add chain=srcnat out-interface=WAN2 action=masquerade
add chain=srcnat out-interface=WAN3 action=masquerade
add chain=srcnat out-interface=WAN4 action=masquerade
add chain=srcnat out-interface=WAN5 action=masquerade
add chain=srcnat out-interface=WAN6 action=masquerade
add chain=srcnat out-interface=WAN7 action=masquerade
add chain=srcnat out-interface=WAN8 action=masquerade
add chain=srcnat out-interface=WAN9 action=masquerade
add chain=srcnat out-interface=WAN10 action=masquerade
add chain=srcnat out-interface=WAN11 action=masquerade
add chain=srcnat out-interface=WAN12 action=masquerade
وهارفع ملف التكست على الرابط ده:..ودةى البيكب كله
دمج فقط
دمج وتوزيع
صور النتيجة
وجارى عمل موضوع تقريرشامل عن الجهاز
وقدروا تتابعوا البرمجة اللى عملتها من الرابط ده
0 التعليقات:
إرسال تعليق