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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!