Hi, I want to create an address list in firewall called clients form 172.165.15.1 to 172.165.15.254, is there a script or a way to make this in one step instead of creating each address one by one?
Regards,
Hi, I want to create an address list in firewall called clients form 172.165.15.1 to 172.165.15.254, is there a script or a way to make this in one step instead of creating each address one by one?
Regards,
:for i from=1 to=254 do={/ip firewall address-list add list=clients address="172.165.15.$i"}
But, are you sure you need one entry per IP? If you just want to cover that subnet, you can just add 172.165.15.0/24 to the address-list and it will match all those client IPs
Thank you for taking the time to answer, I really don’t know if I’m going to need to add the entire list, tonight I’ m going to try a new PCC load balancing that needs the address list and I’m not sure how does it need it. But thank you very much.