Last active
April 6, 2020 08:11
-
-
Save dbrgn/8243aaaa0a0e47eda094 to your computer and use it in GitHub Desktop.
Mikrotik RouterOS: Block DNS lookups for names containing "samsung"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ip firewall filter add | |
chain=input | |
action=drop | |
comment="deny DNS resolution containing 'samsung' from SmartTV" | |
protocol=udp dst-port=53 | |
content="samsung" | |
src-mac-address=<smartv-mac-addr> | |
/ip firewall filter add | |
chain=forward | |
action=drop | |
comment="deny DNS resolution containing 'samsung' from SmartTV" | |
protocol=udp dst-port=53 | |
content="samsung" | |
src-mac-address=<smartv-mac-addr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a regular expression. A dot has a special meaning.