simple script
ip firewall mangle add chain=forward src-address=x.x.x.x/x action=mark-connection new-connection-mark=users-con
ip firewall mangle add connection-mark=users-con action=mark-packet new-packet-mark=users chain=forward
queue type add name=pcq-download kind=pcq pcq-classifier=dst-address
queue type add name=pcq-upload kind=pcq pcq-classifier=src-address
queue tree add name=Download parent="ether2" max-limit=390000
queue tree add parent=Download queue=pcq-download packet-mark=users
queue tree add name=Upload parent="ether5" max-limit=390000
queue tree add parent=Upload queue=pcq-upload packet-mark=users
queue tree add parent="ether2" queue=pcq-download packet-mark=users
queue tree add parent="ether5" queue=pcq-upload packet-mark=users
sesuaikan dengan kondisi router anda
No comments:
Post a Comment