Mikrotik RouterOS notes
Continually updated list of anything useful I find in RouterOS.
Export
From the CLI issue /export file=backup.txt to generate a human-readable file containing everything you'd need to restore your device. One great benefit of doing this is you're able to see how to perform the relevant GUI config over CLI.
Redirect DNS requests for a particulator host to another DNS server
Here we're redirecting requests for *.netflix.com from DNS server 192.168.1.1 to 8.8.8.8
/ip firewall layer7-protocol add name=netflix.com regexp=netflix.com
/ip firewall mangle add chain=prerouting dst-address=192.168.1.1 layer7-protocol=netflix.com action=mark-connection new-connection-mark=netflix.com-forward protocol=tcp dst-port=53
/ip firewall mangle add chain=prerouting dst-address=192.168.1.1 layer7-protocol=netflix.com action=mark-connection new-connection-mark=netflix.com-forward protocol=udp dst-port=53
/ip firewall nat add action=dst-nat chain=dstnat connection-mark=netflix.com-forward to-addresses=8.8.8.8
/ip firewall nat add action=masquerade chain=srcnat connection-mark=netflix.com-forward
IPv6
- Dynamic ipv6 /64 assignment
- [https://www.netdaily.org/tag/mikrotik-ipv6-home-example/]
- A MikroTik router and Internode’s IPv6
- How does IPv6 subnetting work and how does it differ from IPv4 subnetting?
- Switching to IPv6 implies dropping NAT. Is that a good thing?
- Recomended IPv6 firewall rules?
- RouterOS Meets Comcast IPv6
- IPv6 Online Port Scanner