I encountered a strange behaviour in my cluster with respect to VM firewalling.
I created a pve node iptables rule to redirect traffic from 443 to 8006, which works great for
I could replicate this by just using one PVE VM:
I created a pve node iptables rule to redirect traffic from 443 to 8006, which works great for
- all external clients
- VMs hosted on the cluster without firewall
- VMs with firewall enabled that are not running on the node I want to access
- BUT NOT on VMs with firewall enabled that are running on the node I want to access
I could replicate this by just using one PVE VM:
- install PVE 7 and update to current non-subscription repository and reboot (just in case it has been already fixed)
- add iptables rule iptables -t nat -A PREROUTING -d <pve-host-ip> -p tcp --dport 443 -j REDIRECT --to-port 8006
- create container of your choice (I used alpine) and check the firewall box
- enable datacenter firewall (accept all)
- enable container firewall (accept all)
- curl https://<pve-host-ip>/ from the outside, works
- curl https://<pve-host-ip>:8006/ from the container, works
- curl https://<pve-host-ip>/ from the container, does not work