The stripts work well in RouterOS V4.10 and RouterOS v5 beta6.
Today i install the RouterOS v5 RC1
buy the queue tree not work well.
In RC1 only the other_packet has work.If i disable the
add action=mark-packet chain=prerouting comment=out_other connection-mark=\
pppoe-out1_conn disabled=no dst-address-type=!local new-packet-mark=\
out1_other_packet passthrough=no
add action=mark-packet chain=prerouting connection-mark=pppoe-out2_conn \
disabled=no dst-address-type=!local new-packet-mark=out2_other_packet \
passthrough=no
add action=mark-packet chain=prerouting connection-mark=pppoe-out3_conn \
disabled=no dst-address-type=!local new-packet-mark=out3_other_packet \
passthrough=no
first_packet and web_packet can work.
My English not good,may be u can not understand me.But thinks a lot.
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=380k name=out1 parent=pppoe-out1 priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=380k name=out1_first packet-mark=out1_first_packet parent=out1
priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=300k
max-limit=380k name=out1_web packet-mark=out1_web_packet parent=out1
priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=20k
max-limit=380k name=out1_other packet-mark=out1_other_packet parent=out1
priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=380k name=out2 parent=pppoe-out2 priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=280k name=out2_first packet-mark=out2_first_packet parent=out2
priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=200k
max-limit=280k name=out2_web packet-mark=out2_web_packet parent=out2
priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=20k
max-limit=280k name=out2_other packet-mark=out2_other_packet parent=out2
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=380k name=out3 parent=pppoe-out3 priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0
max-limit=380k name=out3_first packet-mark=out3_first_packet parent=out3
priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=300k
max-limit=380k name=out3_web packet-mark=out3_web_packet parent=out3
priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=20k
max-limit=380k name=out3_other packet-mark=out3_other_packet parent=out3
priority=8 queue=default
/ip firewall mangle
add action=mark-connection chain=input disabled=no in-interface=pppoe-out1
new-connection-mark=pppoe-out1_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=pppoe-out2
new-connection-mark=pppoe-out2_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=pppoe-out3
new-connection-mark=pppoe-out3_conn passthrough=yesadd action=mark-connection chain=prerouting disabled=no dst-address-type=
!local new-connection-mark=pppoe-out1_conn passthrough=yes
per-connection-classifier=both-addresses:3/0
add action=mark-connection chain=prerouting disabled=no dst-address-type=
!local new-connection-mark=pppoe-out2_conn passthrough=yes
per-connection-classifier=both-addresses:3/1
add action=mark-connection chain=prerouting disabled=no dst-address-type=
!local new-connection-mark=pppoe-out3_conn passthrough=yes
per-connection-classifier=both-addresses:3/2
add action=mark-connection chain=output comment=dns disabled=yes
dst-address-type=!local new-connection-mark=pppoe-out1_conn passthrough=
no per-connection-classifier=both-addresses:3/0
add action=mark-connection chain=output disabled=yes dst-address-type=!local
new-connection-mark=pppoe-out2_conn passthrough=no
per-connection-classifier=both-addresses:3/1
add action=mark-connection chain=output disabled=yes dst-address-type=!local
new-connection-mark=pppoe-out3_conn passthrough=no
per-connection-classifier=both-addresses:3/2
add action=mark-routing chain=prerouting comment=“pcc”
connection-mark=pppoe-out1_conn disabled=no new-routing-mark=
to_pppoe-out1 passthrough=yes src-address=192.168.0.0/24
add action=mark-routing chain=prerouting connection-mark=pppoe-out2_conn
disabled=no new-routing-mark=to_pppoe-out2 passthrough=yes src-address=
192.168.0.0/24
add action=mark-routing chain=prerouting connection-mark=pppoe-out3_conn
disabled=no new-routing-mark=to_pppoe-out3 passthrough=yes src-address=
192.168.0.0/24
add action=mark-packet chain=prerouting comment=out_first connection-mark=
pppoe-out1_conn disabled=no dst-address-type=!local dst-port=443
new-packet-mark=out1_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out2_conn
disabled=no dst-address-type=!local dst-port=443 new-packet-mark=
out2_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out3_conn
disabled=no dst-address-type=!local dst-port=443 new-packet-mark=
out3_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out1_conn
disabled=no dst-address-type=!local dst-port=53 new-packet-mark=
out1_first_packet passthrough=no protocol=udp
add action=mark-packet chain=prerouting connection-mark=pppoe-out2_conn
disabled=no dst-address-type=!local dst-port=53 new-packet-mark=
out2_first_packet passthrough=no protocol=udp
add action=mark-packet chain=prerouting connection-mark=pppoe-out3_conn
disabled=no dst-address-type=!local dst-port=53 new-packet-mark=
out3_first_packet passthrough=no protocol=udp
add action=mark-packet chain=prerouting connection-mark=pppoe-out1_conn
disabled=no dst-address-type=!local dst-port=8000 new-packet-mark=
out1_first_packet passthrough=no protocol=udp
add action=mark-packet chain=prerouting connection-mark=pppoe-out2_conn
disabled=no dst-address-type=!local dst-port=8000 new-packet-mark=
out2_first_packet passthrough=no protocol=udp
add action=mark-packet chain=prerouting connection-mark=pppoe-out3_conn
disabled=no dst-address-type=!local dst-port=8000 new-packet-mark=
out3_first_packet passthrough=no protocol=udp
add action=mark-packet chain=prerouting connection-mark=pppoe-out1_conn
disabled=no dst-address-type=!local dst-port=3724 new-packet-mark=
out1_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out2_conn
disabled=no dst-address-type=!local dst-port=3724 new-packet-mark=
out2_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out3_conn
disabled=no dst-address-type=!local dst-port=3724 new-packet-mark=
out3_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out1_conn
disabled=no dst-address-type=!local dst-port=1119 new-packet-mark=
out1_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out2_conn
disabled=no dst-address-type=!local dst-port=1119 new-packet-mark=
out2_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out3_conn
disabled=no dst-address-type=!local dst-port=1119 new-packet-mark=
out3_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out1_conn
disabled=no dst-address-type=!local new-packet-mark=out1_first_packet
passthrough=yes protocol=icmp
add action=mark-packet chain=prerouting connection-mark=pppoe-out2_conn
disabled=no dst-address-type=!local new-packet-mark=out2_first_packet
passthrough=yes protocol=icmp
add action=mark-packet chain=prerouting connection-mark=pppoe-out3_conn
disabled=no dst-address-type=!local new-packet-mark=out3_first_packet
passthrough=yes protocol=icmp
add action=mark-packet chain=prerouting connection-mark=pppoe-out1_conn
disabled=no dst-address-type=!local dst-port=8000-8040 new-packet-mark=
out1_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out2_conn
disabled=no dst-address-type=!local dst-port=8000-8040 new-packet-mark=
out2_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out3_conn
disabled=no dst-address-type=!local dst-port=8000-8040 new-packet-mark=
out3_first_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=out_web connection-mark=
pppoe-out1_conn disabled=no dst-address-type=!local dst-port=80
layer7-protocol=http new-packet-mark=out1_web_packet passthrough=no
protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out2_conn
disabled=no dst-address-type=!local dst-port=80 layer7-protocol=http
new-packet-mark=out2_web_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting connection-mark=pppoe-out3_conn
disabled=no dst-address-type=!local dst-port=80 layer7-protocol=http
new-packet-mark=out3_web_packet passthrough=no protocol=tcp
add action=mark-packet chain=prerouting comment=out_other connection-mark=
pppoe-out1_conn disabled=no dst-address-type=!local new-packet-mark=
out1_other_packet passthrough=no
add action=mark-packet chain=prerouting connection-mark=pppoe-out2_conn
disabled=no dst-address-type=!local new-packet-mark=out2_other_packet
passthrough=no
add action=mark-packet chain=prerouting connection-mark=pppoe-out3_conn
disabled=no dst-address-type=!local new-packet-mark=out3_other_packet
passthrough=no

