ميكروتيك

دمج 5 خطوط pcc

دمج 5 خطوط pcc

الاسكرب

/ ip address
add address=6.6.6.6/24 network=6.6.6.0 broadcast=6.6.6.255 interface=LAN
add address=192.168.1.34/24 network=192.168.1.0 broadcast=192.168.1.255 interface=WAN1
add address=192.168.2.34/24 network=192.168.2.0 broadcast=192.168.2.255 interface=WAN2
add address=192.168.3.34/24 network=192.168.3.0 broadcast=192.168.3.255 interface=WAN3
add address=192.168.4.34/24 network=192.168.4.0 broadcast=192.168.4.255 interface=WAN4
add address=192.168.5.34/24 network=192.168.5.0 broadcast=192.168.5.255 interface=WAN5

/ ip firewall mangle
add chain=prerouting dst-address=192.168.1.0/24  action=accept in-interface=LAN
add chain=prerouting dst-address=192.168.2.0/24  action=accept in-interface=LAN
add chain=prerouting dst-address=192.168.3.0/24  action=accept in-interface=LAN
add chain=prerouting dst-address=192.168.4.0/24  action=accept in-interface=LAN
add chain=prerouting dst-address=192.168.5.0/24  action=accept in-interface=LAN

add chain=prerouting in-interface=WAN1 connection-mark=no-mark action=mark-connection new-connection-mark=WAN1_conn
add chain=prerouting in-interface=WAN2 connection-mark=no-mark action=mark-connection new-connection-mark=WAN2_conn
add chain=prerouting in-interface=WAN3 connection-mark=no-mark action=mark-connection new-connection-mark=WAN3_conn
add chain=prerouting in-interface=WAN4 connection-mark=no-mark action=mark-connection new-connection-mark=WAN4_conn
add chain=prerouting in-interface=WAN5 connection-mark=no-mark action=mark-connection new-connection-mark=WAN5_conn

add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses-and-ports:5/0 action=mark-connection new-connection-mark=WAN1_conn
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses-and-ports:5/1 action=mark-connection new-connection-mark=WAN2_conn
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses-and-ports:5/2 action=mark-connection new-connection-mark=WAN3_conn
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses-and-ports:5/3 action=mark-connection new-connection-mark=WAN4_conn
add chain=prerouting  in-interface=LAN connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses-and-ports:5/4 action=mark-connection new-connection-mark=WAN5_conn

add chain=prerouting connection-mark=WAN1_conn in-interface=LAN action=mark-routing new-routing-mark=to_WAN1
add chain=prerouting connection-mark=WAN2_conn in-interface=LAN action=mark-routing new-routing-mark=to_WAN2
add chain=prerouting connection-mark=WAN3_conn in-interface=LAN action=mark-routing new-routing-mark=to_WAN3
add chain=prerouting connection-mark=WAN4_conn in-interface=LAN action=mark-routing new-routing-mark=to_WAN4
add chain=prerouting connection-mark=WAN5_conn in-interface=LAN action=mark-routing new-routing-mark=to_WAN5
add chain=output connection-mark=WAN1_conn hotspot=auth action=mark-routing new-routing-mark=to_WAN1  
add chain=output connection-mark=WAN2_conn hotspot=auth action=mark-routing new-routing-mark=to_WAN2
add chain=output connection-mark=WAN3_conn hotspot=auth action=mark-routing new-routing-mark=to_WAN3
add chain=output connection-mark=WAN4_conn hotspot=auth action=mark-routing new-routing-mark=to_WAN4
add chain=output connection-mark=WAN5_conn hotspot=auth action=mark-routing new-routing-mark=to_WAN5

/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_WAN2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.3.1 routing-mark=to_WAN3 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.4.1 routing-mark=to_WAN4 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.5.1 routing-mark=to_WAN5 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.3.1 distance=3 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.4.1 distance=4 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.5.1 distance=5 check-gateway=ping

/ ip firewall nat
add chain=srcnat src-address=6.6.6.0/24 out-interface=WAN1 action=masquerade
add chain=srcnat src-address=6.6.6.0/24 out-interface=WAN2 action=masquerade
add chain=srcnat src-address=6.6.6.0/24 out-interface=WAN3 action=masquerade
add chain=srcnat src-address=6.6.6.0/24 out-interface=WAN4 action=masquerade
add chain=srcnat src-address=6.6.6.0/24 out-interface=WAN5 action=masquerade

فقط كوبى للاسكرب فى نيوترمال
وتدوس انتر
مع مراعاه تغير ايبهات الروترات نفس الارقام

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني. الحقول الإلزامية مشار إليها بـ *

زر الذهاب إلى الأعلى

انت تستخدم مانع الاعلانات

انت تستخدم مانع الاعلانات يرجى العمل على تعطيله وذلك لتتمكن من استخدام الموقع بالشكل المطلوب