Silahkan copas code berikut di terminal pada winbox atau pake putty.
1. Pengaturan Mangle:
/ ip firewall mangle
add chain=prerouting in-interface=lan dst-address-list=nice \
action=mark-connection new-connection-mark=conn-iix passthrough=yes
add chain=prerouting in-interface=lan dst-address-list=!nice \
action=mark-connection new-connection-mark=conn-intl passthrough=yes
add chain=prerouting connection-mark=conn-iix \
action=mark-packet new-packet-mark=indonesia passthrough=no
add chain=output connection-mark=conn-iix \
action=mark-packet new-packet-mark=indonesia passthrough=no
add chain=prerouting connection-mark=conn-intl \
action=mark-packet new-packet-mark=overseas passthrough=no
add chain=output connection-mark=conn-intl \
action=mark-packet new-packet-mark=overseas passthrough=no
2. Pengaturan Queue:
/ queue simple
add name="Indonesia" target-addresses=192.168.0.2/32 dst-address=0.0.0.0/0 interface=all \
parent=none packet-marks=indonesia direction=both priority=8 queue=default/default limit-at=0/0 \
max-limit=64000/250000 total-queue=default-small
add name="Overseas" target-addresses=192.168.0.2/32 dst-address=0.0.0.0/0 interface=all \
parent=none packet-marks=overseas direction=both priority=8 queue=default/default limit-at=0/0 \
max-limit=64000/256000 total-queue=default-small
Silahkan edit tex warna merah sesuai dengan IP jaringan lokal kamu dan atur juga besaran upstream-downstream nya. Contoh di atas untuk satu client saja, client yang lain tinggal di copas dan dibedakan IP address nya.
Semoga membantu.
1. Pengaturan Mangle:
/ ip firewall mangle
add chain=prerouting in-interface=lan dst-address-list=nice \
action=mark-connection new-connection-mark=conn-iix passthrough=yes
add chain=prerouting in-interface=lan dst-address-list=!nice \
action=mark-connection new-connection-mark=conn-intl passthrough=yes
add chain=prerouting connection-mark=conn-iix \
action=mark-packet new-packet-mark=indonesia passthrough=no
add chain=output connection-mark=conn-iix \
action=mark-packet new-packet-mark=indonesia passthrough=no
add chain=prerouting connection-mark=conn-intl \
action=mark-packet new-packet-mark=overseas passthrough=no
add chain=output connection-mark=conn-intl \
action=mark-packet new-packet-mark=overseas passthrough=no
2. Pengaturan Queue:
/ queue simple
add name="Indonesia" target-addresses=192.168.0.2/32 dst-address=0.0.0.0/0 interface=all \
parent=none packet-marks=indonesia direction=both priority=8 queue=default/default limit-at=0/0 \
max-limit=64000/250000 total-queue=default-small
add name="Overseas" target-addresses=192.168.0.2/32 dst-address=0.0.0.0/0 interface=all \
parent=none packet-marks=overseas direction=both priority=8 queue=default/default limit-at=0/0 \
max-limit=64000/256000 total-queue=default-small
Silahkan edit tex warna merah sesuai dengan IP jaringan lokal kamu dan atur juga besaran upstream-downstream nya. Contoh di atas untuk satu client saja, client yang lain tinggal di copas dan dibedakan IP address nya.
Semoga membantu.
0 komentar:
Posting Komentar