本帖最后由 bg1mm 于 2011-8-7 18:23 编辑
这是12条ADSL +电信+网通+'拷进去就行了
/ip firewall mangle
add action=mark-connection chain=input comment=ADSL1nput disabled=no
dst-address-type="" in-interface=pppoe-out1 new-connection-mark=
ADSL1input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL1input
disabled=no new-routing-mark=ADSL1 passthrough=yes
add action=mark-connection chain=input comment=ADSL2_Input disabled=no
dst-address-type="" in-interface=pppoe-out2 new-connection-mark=
ADSL2input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL2input
disabled=no new-routing-mark=ADSL2 passthrough=yes
add action=mark-connection chain=input comment=ADSL3nput disabled=no
dst-address-type="" in-interface=pppoe-out3 new-connection-mark=
ADSL3input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL3input
disabled=no new-routing-mark=ADSL3 passthrough=yes
add action=mark-connection chain=input comment=ADSL4_Input disabled=no
dst-address-type="" in-interface=pppoe-out4 new-connection-mark=
ADSL4input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL4input
disabled=no new-routing-mark=ADSL4 passthrough=yes
add action=mark-connection chain=input comment=ADSL5_Input disabled=no
dst-address-type="" in-interface=pppoe-out5 new-connection-mark=
ADSL5input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL5input
disabled=no new-routing-mark=ADSL5 passthrough=yes
add action=mark-connection chain=input comment=ADSL6_Input disabled=no
dst-address-type="" in-interface=pppoe-out6 new-connection-mark=
ADSL6input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL6input
disabled=no new-routing-mark=ADSL6 passthrough=yes
add action=mark-connection chain=input comment=ADSL7_Input disabled=no
dst-address-type="" in-interface=pppoe-out7 new-connection-mark=
ADSL7input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL7input
disabled=no new-routing-mark=ADSL7 passthrough=yes
add action=mark-connection chain=input comment=ADSL8_Input disabled=no
dst-address-type="" in-interface=pppoe-out8 new-connection-mark=
ADSL8input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL8input
disabled=no new-routing-mark=ADSL8 passthrough=yes
add action=mark-connection chain=input comment=ADSL9_Input disabled=no
dst-address-type="" in-interface=pppoe-out9 new-connection-mark=
ADSL9input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL9input
disabled=no new-routing-mark=ADSL9 passthrough=yes
add action=mark-connection chain=input comment=ADSL10_Input disabled=no
dst-address-type="" in-interface=pppoe-out10 new-connection-mark=
ADSL10input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL10input
disabled=no new-routing-mark=ADSL10 passthrough=yes
add action=mark-connection chain=input comment=ADSL11_Input disabled=no
dst-address-type="" in-interface=pppoe-out11 new-connection-mark=
ADSL11input passthrough=no
add action=mark-routing chain=output comment="" connection-mark=ADSL11input
disabled=no new-routing-mark=ADSL11 passthrough=yes
add action=mark-connection chain=input comment=ADSL12_Input disabled=no
dst-address-type="" in-interface=pppoe-out12 new-connection-mark=
ADSL12input passthrough=no
add action=jump chain=prerouting comment=Telecom_100 disabled=yes
dst-address-list=List_ChinaTelecom jump-target=Chain_Telecom src-address=
192.168.0.0/16
add action=jump chain=prerouting comment="" disabled=yes dst-address-list=
List_ChinaUnicom jump-target=Chain_Telecom protocol=udp src-address=
192.168.0.0/16 src-port=1863
add action=jump chain=prerouting comment="" disabled=yes dst-address-list=
List_ChinaUnicom dst-port=1863 jump-target=Chain_Telecom protocol=udp
src-address=192.168.0.0/16
add action=jump chain=prerouting comment="" disabled=yes dst-address-list=
List_ChinaUnicom dst-port=81,82,8080,443 jump-target=Chain_Telecom
protocol=tcp src-address=192.168.0.0/16
add action=jump chain=prerouting comment="" disabled=yes dst-address-list=
List_Other jump-target=Chain_Telecom src-address=192.168.0.0/16
add action=mark-routing chain=Chain_Telecom comment="" disabled=yes
new-routing-mark=Route_ChinaTelecom passthrough=no
add action=jump chain=prerouting comment="" disabled=yes dst-address-list=
List_ChinaUnicom jump-target=Chain_Unicom_50 src-address=192.168.0.0/16
add action=mark-routing chain=Chain_Unicom_50 comment="" disabled=yes
new-routing-mark=Route_ChinaUnicom_50 passthrough=no
add action=jump chain=prerouting comment=Unicom_50 disabled=yes
dst-address-list=List_ChinaUnicom jump-target=Chain_Unicom_50
src-address=192.168.0.0/16
add action=jump chain=prerouting comment=Unicom_ADSL disabled=yes
dst-address-list=List_ChinaUnicom dst-port=80 jump-target=Chain_Unicom_50
protocol=tcp src-address=192.168.0.0/16
add action=mark-routing chain=Chain_Unicom_50 comment="" disabled=yes
new-routing-mark=Route_ChinaUnicom_ADSL passthrough=no
add action=jump chain=prerouting comment=ADSL_LoadBalancing disabled=no
dst-address-list=List_ChinaUnicom jump-target=LoadBalancing src-address=
192.168.0.0/16
add action=mark-routing chain=LoadBalancing comment="" disabled=yes
new-routing-mark=main passthrough=no
add action=mark-connection chain=LoadBalancing comment=1 disabled=no
dst-address-type=!local new-connection-mark=adsl1conn passthrough=yes
per-connection-classifier=both-addresses:11/0
add action=mark-routing chain=LoadBalancing comment="" connection-mark=
adsl1conn disabled=no new-routing-mark=ADSL1 passthrough=yes
add action=mark-connection chain=LoadBalancing comment=2 disabled=no
dst-address-type=!local new-connection-mark=adsl2conn passthrough=yes
per-connection-classifier=both-addresses:11/1
add action=mark-routing chain=LoadBalancing comment="" connection-mark=
adsl2conn disabled=no new-routing-mark=ADSL2 passthrough=yes
add action=mark-connection chain=LoadBalancing comment=3 disabled=no
dst-address-type=!local new-connection-mark=adsl3conn passthrough=yes
per-connection-classifier=both-addresses:11/2
add action=mark-routing chain=LoadBalancing comment="" connection-mark=
adsl3conn disabled=no new-routing-mark=ADSL3 passthrough=yes
add action=mark-connection chain=LoadBalancing comment=4 disabled=no
dst-address-type=!local new-connection-mark=adsl4conn passthrough=yes
per-connection-classifier=both-addresses:11/3
add action=mark-routing chain=LoadBalancing comment="" connection-mark=
adsl4conn disabled=no new-routing-mark=ADSL4 passthrough=yes
add action=mark-connection chain=LoadBalancing comment=5 disabled=no
dst-address-type=!local new-connection-mark=adsl5conn passthrough=yes
per-connection-classifier=both-addresses:11/4
add action=mark-routing chain=LoadBalancing comment="" connection-mark=
adsl5conn disabled=no new-routing-mark=ADSL5 passthrough=yes
add action=mark-connection chain=LoadBalancing comment=6 disabled=no
dst-address-type=!local new-connection-mark=adsl6conn passthrough=yes
per-connection-classifier=both-addresses:11/5
add action=mark-routing chain=LoadBalancing comment="" connection-mark=
adsl6conn disabled=no new-routing-mark=ADSL6 passthrough=yes
add action=mark-connection chain=LoadBalancing comment=7 disabled=no
dst-address-type=!local new-connection-mark=adsl7conn passthrough=yes
per-connection-classifier=both-addresses:11/6
add action=mark-routing chain=LoadBalancing comment="" connection-mark=
adsl7conn disabled=no new-routing-mark=ADSL7 passthrough=yes
add action=mark-connection chain=LoadBalancing comment=8 disabled=no
dst-address-type=!local new-connection-mark=adsl8conn passthrough=yes
per-connection-classifier=both-addresses:11/7
add action=mark-routing chain=LoadBalancing comment="" connection-mark=
adsl8conn disabled=no new-routing-mark=ADSL8 passthrough=yes
add action=mark-connection chain=LoadBalancing comment=9 disabled=no
dst-address-type=!local new-connection-mark=adsl9conn passthrough=yes
per-connection-classifier=both-addresses:11/8
add action=mark-routing chain=LoadBalancing comment="" connection-mark=
adsl9conn disabled=no new-routing-mark=ADSL9 passthrough=yes
add action=mark-connection chain=LoadBalancing comment=10 disabled=no
dst-address-type=!local new-connection-mark=adsl10conn passthrough=yes
per-connection-classifier=both-addresses:11/9
add action=mark-routing chain=LoadBalancing comment="" connection-mark=
adsl10conn disabled=no new-routing-mark=ADSL10 passthrough=yes
add action=mark-connection chain=LoadBalancing comment=11 disabled=no
dst-address-type=!local new-connection-mark=adsl11conn passthrough=yes
per-connection-classifier=both-addresses:11/10 |