Ada kalanya kita sering memasukan address-list dynamic via firewall (filter rules) tapi kesulitan merubahnya menjadi static? script dibawah yaitu cara termudah untuk merubah address list ip static menjadi dinamyc secara otomatis.
#Cara merubah address-list Dynamic Makara Static: :local name "patch-baru" foreach i in=[/ip firewall address-list find (dynamic=yes)&&(list=$name)] do={ :local a [/ip firewall address-list get value-name=address $i] /ip firewall address-list remove $i /ip firewall address-list add address=$a list=patch-baru
0 comments:
Post a Comment