AKZN Notes

Archives for My Lazy and Forgetful Mind

MikroTik Hotspot Bandwidth Management

Hotspot Configuration

  1. Basic Settings:

    • Configure the hotspot settings as usual.
  2. 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 as packet-mark-download. This will dynamically add a packet mark in Mangle.
  3. 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).

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

  1. Add Queue Tree:
    • Create queue trees using the specified packet marks, like packet-mark-download, to manage bandwidth effectively.

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

Leave a Reply

Your email address will not be published.