Help cant create ip address list
Posted: Tue Apr 25, 2023 5:34 pm
Please do help, id like to create a script wherein when the sys scheduler is disabled, automatically it will create ip address list base on ppp active name and ip, here's my code
Thankyou in advance
Code: Select all
/system scheduler
:foreach item in=[find where disabled] do={
:local disAcc [get $item name]
/ppp active
:foreach sname in=[find where name=$disAcc] do={
:local ip [get $sname address]
:local notif [get $sname name]
:log warning "Acc Name: $notif IP: $ip"
/ip firewall address add list=PPPOE-CLIENT-NOTIFY address=$ip comment=$notif
}
}