Containers Firewall

PmUserZFS

Well-Known Member
Feb 2, 2018
77
2
48
I enable firewall with just a DROP line, but nothing is enbled all ports are open, why ? How you do enable the firewall if not by crossing the enable box ?

Firewall is enabled for datacenter and the pve node (single node at home)
 
Hi,

Please post config for the LXC container that you enabled the firewall on it pct config VMID
 
There is config in proxmox webb gui, but none seen in cli.

➜ ~ pct config 105
arch: amd64
cores: 4
hostname: xxxxx
memory: 1024
mp0: xxxxx
net0: name=eth0,bridge=vmbr0,gw=10.10.1.1,hwaddr=bE:40:1A:fA:90:15,ip=10.10.11.7/24,tag=10,type=veth
ostype: ubuntu
rootfs: zfs-containers:subvol-105-disk-2,size=8G
swap: 1024

1604668238287.png
 
Hi,

Please go to LXC -> Network click Edit and enable the Firewall


hope that helps!
 
Somehow it got disabled , maybe during restart one pve firewall. Any how same result

1604670329137.png
1604670357060.png
 
I know it's an old thread, but thanks! I didn't realize I had to enable firewall both in the LXC Network settings AND in the LXC Firewall settings.
And the datacenter level ... all need to be turned on in order that it works.

We have an automatic check for all our guests from the inside that tests if a special port is blocked and therefore we know that the firewall is correctly turned on. If it's reachable, someone forgot to check some boxes and can solve the problem.
 

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!