I have xMB link
I want to limit local users to:
1. Local traffic - unlimited
2. Internet traffic - 512/512 each
3. P2P applications - 128/512 all
Is this configuration OK?
Code: Select all
/ ip firewall address-list
add list=Lokalni address=88.85.123.0/24 comment="" disabled=no
/ ip firewall mangle
add chain=prerouting p2p=all-p2p dst-address-list=!Lokalni \
action=mark-connection new-connection-mark=p2p_conn passthrough=yes \
comment="" disabled=no
add chain=prerouting connection-mark=p2p_conn action=mark-packet \
new-packet-mark=p2p passthrough=no comment="" disabled=no
add chain=prerouting dst-address-list=!Lokalni action=mark-connection \
new-connection-mark=internet_con passthrough=yes comment="" disabled=no
add chain=prerouting connection-mark=internet_con action=mark-packet \
new-packet-mark=internet passthrough=no comment="" disabled=no
/queue simple
add name="1" target-addresses=88.85.123.1/32 dst-address=0.0.0.0/0 \
interface=all parent=none packet-marks=internet direction=both priority=8 \
queue=default-small/default-small limit-at=0/0 max-limit=512000/512000 \
total-queue=default-small disabled=no
..........................
add name="254" target-addresses=88.85.123.254/32 dst-address=0.0.0.0/0 \
interface=all parent=none packet-marks=internet direction=both priority=8 \
queue=default-small/default-small limit-at=0/0 max-limit=512000/512000 \
total-queue=default-small disabled=no
add name="p2p" dst-address=0.0.0.0/0 interface=all parent=none \
packet-marks=p2p direction=both priority=8 \
queue=default-small/default-small limit-at=0/0 max-limit=128000/512000 \
total-queue=default-small disabled=no