Untuk penjelasannya bisa cek youtube : https://youtu.be/KuvbuH_zo34:delay 2; :local ip [/ip address get [/ip address find interface="<pppoe-$user>"] network]; /ip firewall mangle remove [find where comment=$user]; :log warning "Mangle untuk user $user dibersihkan."; :delay 2; /ip firewall mangle add comment=$user chain=prerouting action=mark-connection new-connection-mark="con-$user" src-address=$ip passthrough=yes; /ip firewall mangle add comment=$user chain=prerouting connection-mark="con-$user" action=mark-packet new-packet-mark="router-$user" passthrough=no; :log warning "Mangle untuk user $user berhasil dibuat."; :delay 2; /queue tree remove [find name="$user-PPPOE-Download"]; /queue tree remove [find name="$user-PPPOE-Upload"]; :log warning "Queue untuk user $user berhasil dihapus."; :delay 2; /queue tree add name="$user-PPPOE-Download" packet-mark="router-$user" queue=pcq-download-default parent="3. PPPOE-CLIENT-LINE-INDIHOME" max-limit=4000000; /queue tree add name="$user-PPPOE-Upload" packet-mark="router-$user" queue=pcq-upload-default parent=UPLOAD-INDIHOME max-limit=1000000; :log warning "Queue sudah ditambahkan."; #:delay 2; :log warning "PPOE $user sudah siap digunakan.";
mangle pppoe user
|
Langganan:
Postingan (Atom)