Contents
Hotspot Configuration
-
Basic Settings:
- Configure the hotspot settings as usual.
-
RADIUS Configuration (if applicable):
- In the server profile, enable the "Use RADIUS" option.
- Create a user profile and specify values in
incoming[up]/outgoing-mark[down]
, such aspacket-mark-download
. This will dynamically add a packet mark in Mangle.
-
Mikrotik-Group Attribute:
- If your RADIUS server uses the "Mikrotik-Group" attribute, ensure the corresponding value is created in the user profile (e.g.,
Paket10
).
- If your RADIUS server uses the "Mikrotik-Group" attribute, ensure the corresponding value is created in the user profile (e.g.,
Mangle Jump Rules
To ensure that user traffic is correctly processed by the firewall, add jump rules to redirect traffic to the hotspot chain:
/ip firewall mangle add chain=prerouting action=jump jump-target=hotspot
/ip firewall mangle add chain=postrouting action=jump jump-target=hotspot
Queue Tree Configuration
- Add Queue Tree:
- Create queue trees using the specified packet marks, like
packet-mark-download
, to manage bandwidth effectively.
- Create queue trees using the specified packet marks, like
Example Queue Tree Entry:
/queue tree add name="Download Queue" parent=global queue=default packet-mark=packet-mark-download limit-at=1M max-limit=10M