add a list of ip addresses to whitelist

Mr. Toad

New Member
Apr 14, 2023
2
0
1
Russia
Hi!
Is there a way to add a list of ip addresses to whitelist?
I have 1400 ip-addresses and adding them manually is very difficult...
 
Last edited:
@nunner thanks!
I got this:
pmgsh create /config/whitelist/ip --ip 'ip address'
or
for ip in `cat ips.txt`; do pmgsh create /config/whitelist/ip --ip "$ip"; done
 
Last edited:
I also recommend learning how to remove them quickly with a script for the same reason.
Have used this method for other things and there are times you need to remove a batch of them.