[SOLVED] ipset in bulk

rolcom

Member
Jun 22, 2020
8
1
8
Hi,

I wanted to use the ipset feature within proxmox firewall, to block/allow certain countries, the thing is the database is huge and I dont think adding manually and updating the list weekly is not the way to go...

I've been looking in the directories, mainly at /etc/pve if I could find the config file or where are the ipset stored, so I can copy there all the IPs...

Anyone knows the best way to add a lot of IPs as ipset in proxmox?


Thanks.
 
Hi,

I've been looking in the directories, mainly at /etc/pve if I could find the config file or where are the ipset stored, so I can copy there all the IPs...

The most relevant directory is: /etc/pve/firewall
For cluster wide IP sets: /etc/pve/firewall/cluster.fw
Node definitions are stored in: /etc/pve/nodes/NODENAME/host.fw though
 
  • Like
Reactions: rolcom
THANKS! I've no idea how I didnt see those files... right what I was looking for, all ipsets are populated now, THAAANKS.
 
Hi, I’m thinking about the same thing to use one ipset for several CT. Did you made a script to update the list ? Can you share the way you implemented ist ?

Tanks by advance
 
For those coming across this old thread from Google, pve-firewall status will recompile cluster.fw and add the new IPset without needing to restart the entire firewall.
 

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!