Advertisement
niammuddin

addresslist to route rules

Mar 24th, 2022
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. :foreach i in=[/ip firewall address-list find where list=tiktok] do={
  2. :if ([typeof [toip [/ip firewall address-list get $i address]]] = "ip") do={
  3. #Item is an IP-Address
  4. /ip route rule add dst-address=[/ip firewall address-list get $i address] table="tiktok_lcc"
  5. }
  6. }
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement