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 😅

top 4 comments
sorted by: hot top controversial new old
[–] terabyterex@lemmy.world 3 points 1 week ago

i dont know what you know and dont know but at at a high-level. i needed sbanzbd to go through a vpn. so i installed sbanzbd on the same docker vm lxc as gluetun. if a different container needed access to gluetun i woild have to use its builtin proxy

[–] 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).

[–] possiblylinux127@lemmy.zip -4 points 1 week ago (1 children)

Don't

I don't see a usecase

[–] spitfire@lemmy.world 3 points 1 week ago

Just because you don’t, doesn’t mean there isn’t one.