this post was submitted on 03 Jul 2026
3 points (71.4% liked)

Proxmox

1822 readers
1 users here now

Proxmox VE is a complete, open-source server management platform for enterprise virtualization. It tightly integrates the KVM hypervisor and Linux Containers (LXC), software-defined storage and networking functionality, on a single platform. With the integrated web-based user interface you can manage VMs and containers, high availability for clusters, or the integrated disaster recovery tools with ease.

Proxmox VE Official site

K3S on Proxmox LXC

founded 3 years ago
MODERATORS
 

I have an lxc running a VPN, and where the host needs to access the internet (e.g. doing updates) I want to force that through the lxc VPN.

I dont want to interfere with local lan or cluster traffic - so just setting a default route isn't appropriate. Likewise I'm not sure just installing the VPN on the host is the right idea.

I'm pretty sure there is a way of doing it... its just not coming to me 😅

you are viewing a single comment's thread
view the rest of the comments
[–] tvcvt@lemmy.ml 3 points 1 week ago

It sounds like you do want to set the default route to the LXC’s address. Then set individual routes for the local LAN and cluster traffic. The routing table will prefer the more specific route (e.g., if you’re trying to get to 192.168.0.14, it will prefer the route you set for 192.168.0.0/24 instead of the default, which is equivalent to 0.0.0.0/0).