Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /ip firewall mangle
- add action=mark-packet chain=prerouting comment=Proxy-Hit disabled=yes dscp=12 new-packet-mark=HIT passthrough=yes
- add action=mark-connection chain=input comment="PCC RULE —- MARK ALL PPPoE CONN" connection-state=new disabled=yes in-interface=Speedy new-connection-mark=pppoe1_conn passthrough=yes
- add action=mark-connection chain=input comment="" connection-state=new disabled=yes in-interface=Speedy1 new-connection-mark=pppoe2_conn passthrough=yes
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes in-interface=Speedy new-connection-mark=pppoe1_conn passthrough=yes
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes in-interface=Speedy1 new-connection-mark=pppoe2_conn passthrough=yes
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes in-interface=Speedy new-connection-mark=pppoe1_conn passthrough=yes
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes in-interface=Speedy1 new-connection-mark=pppoe2_conn passthrough=yes
- add action=mark-routing chain=output comment="" connection-mark=pppoe1_conn disabled=yes new-routing-mark=pppoe_1 passthrough=no
- add action=mark-routing chain=output comment="" connection-mark=pppoe2_conn disabled=yes new-routing-mark=pppoe_2 passthrough=no
- add action=mark-connection chain=prerouting comment="PCC RULE MARK HTTP CONN- ProxyUp=Enable" connection-state=established disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether1-Proxy new-connection-mark=http_pppoe_1 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether1-Proxy new-connection-mark=http_pppoe_2 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether1-Proxy new-connection-mark=http_pppoe_3 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether1-Proxy new-connection-mark=http_pppoe_1 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether1-Proxy new-connection-mark=http_pppoe_2 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether1-Proxy new-connection-mark=http_pppoe_3 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2 protocol=tcp
- add action=mark-connection chain=prerouting comment="PCC RULE MARK HTTP CONN - ProxyUp=Disable" connection-state=established disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether5-local new-connection-mark=http_pppoe_1 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether5-local new-connection-mark=http_pppoe_2 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether5-local new-connection-mark=http_pppoe_3 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether5-local new-connection-mark=http_pppoe_1 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether5-local new-connection-mark=http_pppoe_2 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local dst-port=21,80 in-interface=ether5-local new-connection-mark=http_pppoe_3 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2 protocol=tcp
- add action=mark-connection chain=prerouting comment="PCC RULE —- MARK – NON -HTTP CONN" connection-state=established disabled=yes dst-address-type=!local dst-port=!21,80 in-interface=ether5-local new-connection-mark=non.http_pppoe_1 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes dst-address-type=!local dst-port=!21,80 in-interface=ether5-local new-connection-mark=non.http_pppoe_2 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes dst-address-type=!local dst-port=!21,80 in-interface=ether5-local new-connection-mark=non.http_pppoe_3 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local dst-port=!21,80 in-interface=ether5-local new-connection-mark=non.http_pppoe_1 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local dst-port=!21,80 in-interface=ether5-local new-connection-mark=non.http_pppoe_2 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local dst-port=!21,80 in-interface=ether5-local new-connection-mark=non.http_pppoe_3 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2 protocol=tcp
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes dst-address-type=!local in-interface=ether5-local new-connection-mark=non.http_pppoe_1 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0 protocol=udp
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes dst-address-type=!local in-interface=ether5-local new-connection-mark=non.http_pppoe_2 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1 protocol=udp
- add action=mark-connection chain=prerouting comment="" connection-state=established disabled=yes dst-address-type=!local in-interface=ether5-local new-connection-mark=non.http_pppoe_3 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2 protocol=udp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local in-interface=ether5-local new-connection-mark=non.http_pppoe_1 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/0 protocol=udp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local in-interface=ether5-local new-connection-mark=non.http_pppoe_2 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/1 protocol=udp
- add action=mark-connection chain=prerouting comment="" connection-state=related disabled=yes dst-address-type=!local in-interface=ether5-local new-connection-mark=non.http_pppoe_3 passthrough=yes per-connection-classifier=both-addresses-and-ports:3/2 protocol=udp
- add action=mark-routing chain=prerouting comment="PCC RULE —- MARK – HTTP ROUTE" connection-mark=http_pppoe_1 disabled=yes new-routing-mark=pppoe_1 passthrough=yes
- add action=mark-routing chain=prerouting comment="" connection-mark=http_pppoe_2 disabled=yes new-routing-mark=pppoe_1 passthrough=yes
- add action=mark-routing chain=prerouting comment="" connection-mark=http_pppoe_3 disabled=yes new-routing-mark=pppoe_2 passthrough=yes
- add action=mark-routing chain=prerouting comment="PCC RULE MARK NON HTTP ROUTE" connection-mark=non.http_pppoe_1 disabled=yes new-routing-mark=pppoe_1 passthrough=yes
- add action=mark-routing chain=prerouting comment="" connection-mark=non.http_pppoe_2 disabled=yes new-routing-mark=pppoe_1 passthrough=yes
- add action=mark-routing chain=prerouting comment="" connection-mark=non.http_pppoe_3 disabled=yes new-routing-mark=pppoe_2 passthrough=yes
- /ip route
- add check-gateway=ping disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=Speedy routing-mark=pppoe_1 scope=30 target-scope=10
- add check-gateway=ping disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=Speedy1 routing-mark=pppoe_2 scope=30 target-scope=10
Advertisement
Add Comment
Please, Sign In to add comment