Skip to content

Instantly share code, notes, and snippets.

@ebababi
Created March 28, 2020 19:46
Show Gist options
  • Save ebababi/9c2a3465907564bf9624e6d5db1c5e52 to your computer and use it in GitHub Desktop.
Save ebababi/9c2a3465907564bf9624e6d5db1c5e52 to your computer and use it in GitHub Desktop.
MikroTik RouterOS Script: Enable WMM in both wireless interfaces and create firewall rule setting WMM priority from DSCP.
# Enable WMM in both wireless interfaces (2.4GHz and 5Ghz) and create firewall
# rule setting WMM priority from DSCP value of IP packets headers.
#
# Resources:
# https://wiki.mikrotik.com/wiki/Manual:WMM
# https://forum.mikrotik.com/viewtopic.php?t=125152#p616385
/interface wireless
set [find default-name=wlan1] wmm-support=enabled
set [find default-name=wlan2] wmm-support=enabled
/ip firewall mangle
add action=set-priority chain=postrouting new-priority=from-dscp-high-3-bits passthrough=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment