Forwarding/Routing local traffic to outbound VPN using Proxmox Debian12 LXC template

mooneye14

New Member
Feb 9, 2023
1
0
1
Is there a limitation Proxmox puts on having a Linux Container do IP forwarding in PVE? I built a Debian12 LXC from the Proxmox template. Built an IPsec VPN connection going out to a secure web gateway. The LXC is sending its own traffic down the VPN, ala curl https://ifconfig.io

I enabled IPV4 forwarding in sysctl, downloaded UFW and ran both ufw default allow routed and
Edit /etc/default/ufw and set DEFAULT_FORWARD_POLICY to ACCEPT:

DEFAULT_FORWARD_POLICY="ACCEPT"

Several reloads and reboots followed

But ufw status verbose still always shows the default action of Routed to be DENY and the LXC will not forward any traffic meant for the VPN from another device in that subnet.
I can build a Debian VM from the netinst ISO and use the same process, which works.

Does it have anything to do with pve-firewall not doing forwarding and I'd have to change to proxmox-firewall to get the LXC to forward? The LXC container netw interface did not have the Firewall option enabled.
 

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!