I use Netbird (a Wireguard-based VPN) to secure our network and I have it setup, for example, so that with Proxmox's firewall, SSH is only available on containers if the originating IP is within Netbird's private range (100.64.0.0/10) using a "datacenter" level alias in the PVE web administration tool (`dc/netbird`).
This works fine with containers, where I've specified that port 22 is allowed if the origin is `dc/netbird`. Initially, this also worked fine also with the actual Proxmox node, allowing me to use the Netbird private IP of the server to access ports 22 and 8006. However, a failed attempt to add the node to a Proxmox cluster cleared my firewall rules and since then, I've been unable to allow SSH and Proxmox web administration (port 8006) through the firewall to the node. I have those ports in the node level firewall open to `dc/netbird` just as I do on the container level, but unlike the container level, as soon as I turn on pve-firewall, I find myself shut out of those services.
Here's the `/etc/pve/nodes/[hostname]/host.fw`:
And here's the DC level config:
I've tried everything I can think of to resolve this, but can't seem to find the problem. I'm running PVE 8/Debian 12. As soon as I use IPMI to get into my server and turn off pve-firewall, everything works again, but obviously that's not a good idea!
This works fine with containers, where I've specified that port 22 is allowed if the origin is `dc/netbird`. Initially, this also worked fine also with the actual Proxmox node, allowing me to use the Netbird private IP of the server to access ports 22 and 8006. However, a failed attempt to add the node to a Proxmox cluster cleared my firewall rules and since then, I've been unable to allow SSH and Proxmox web administration (port 8006) through the firewall to the node. I have those ports in the node level firewall open to `dc/netbird` just as I do on the container level, but unlike the container level, as soon as I turn on pve-firewall, I find myself shut out of those services.
Here's the `/etc/pve/nodes/[hostname]/host.fw`:
Code:
[OPTIONS]
enable: 1
[RULES]
IN ACCEPT -p tcp -dport 8006 -log nolog # Proxmox GUI
IN ACCEPT -source +dc/management -p tcp -dport 10000 -log nolog
IN SSH(ACCEPT) -source dc/netbird -log nolog
IN DNS(DROP) -log nolog
|GROUP gluster -i bond0
|IN HTTPS(ACCEPT) -log nolog
|IN HTTP(ACCEPT) -log nolog
And here's the DC level config:
Code:
[OPTIONS]
enable: 1
[ALIASES]
netbird 100.64.0.0/10
[IPSET management]
dc/netbird
[RULES]
OUT ACCEPT -source dc/netbird -log nolog
IN ACCEPT -source dc/netbird -log nolog
[group hosting]
IN HTTP(ACCEPT) -log nolog
IN SSH(ACCEPT) -source +dc/management -log nolog
IN ACCEPT -p tcp -dport 20000 -log nolog # Usermin
IN ACCEPT -p tcp -dport 10000 -log nolog # Webmin
IN POP3(ACCEPT) -log nolog
IN IMAPS(ACCEPT) -log nolog
IN IMAP(ACCEPT) -log nolog
IN Mail(ACCEPT) -log nolog
IN HTTPS(ACCEPT) -log nolog
IN FTP(ACCEPT) -log nolog
IN DNS(ACCEPT) -log nolog
I've tried everything I can think of to resolve this, but can't seem to find the problem. I'm running PVE 8/Debian 12. As soon as I use IPMI to get into my server and turn off pve-firewall, everything works again, but obviously that's not a good idea!
Last edited: