Bridge + NAT + Firewall

KPE

Member
Sep 1, 2021
5
0
6
45
Hi, I have some problems getting the LXC firewalls managed by Proxmox to work.

This is my pve setup:
Code:
auto lo
iface lo inet loopback

iface enp9s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address xxx.xxx.xxx.227/32
        gateway xxx.xxx.xxx.193
        bridge-ports enp9s0
        bridge-stp off
        bridge-fd 1
        pointopoint xxx.xxx.xxx.193
        bridge_hello 2
        bridge_maxage 12

auto vmbr1
iface vmbr1 inet static
        address 10.10.10.1/24
        bridge-ports none
        bridge-stp off
        bridge-fd 0

        post-up   echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr0 -j MASQUERADE

Whenever I enable a LXC firewall on any virtual adapter that connects to the vbmr1 bridge, it seems it blocks all outgoing traffic, even if I add a rule that accepts all in- and outgoing traffic. There are no traces in the firewall logs, so I suspect it's something todo with my interface configuration.

Can anyone tell me what I'm doing wrong?
 
Last edited:
I'm having this issue as well, seems disabling the firewall on the individual containers works, but then they lose incoming traffic sometimes o_O
o_O
 

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!