Code: Select all
/ip firewall address-list {
:foreach i in=[find list=Bloqueados] do={
:local ip [get $i address]
/ppp active {
:foreach j in=[find address=$ip] do={
:local name [get $j name]
:local p1 "%<pppoe-"
:local p2 ">"
:local p3 "<pppoe-"
/ipv6 route remove [find gateway~"$p1$name$p2"]
/ipv6 route remove [find gateway~"$p3$name$p2"]
}
}
}
}