屏蔽动态域名的脚本:
/ip firewall filter add action=drop chain=forwardcomment="" disabled=no dst-address-list=hao123 :global a :set a [:resolve www.hao123.com :if ([:len [/ip fir add find list=hao123address=$a]] = 0) do={/ip fir add add list=hao123
address=$a } 红色的改成要屏蔽的域名,经测试ROS 2.X
3.X
4.X 5.X下都可以正常运行! |