Is Priviledged LXC behind Proxy server a risk?

JensK

Member
Oct 14, 2022
5
0
21
I have a Proxmox setup with lots of priviledged LXCs. Many of those are acessible from the external net through a proxyserver running in af unpriviledged LXC

The reason for the many priviledged LXCs is that they access data from my NAS via NFS. I run the nas on the same Proxmox server in a VM.

Over time i have become worryed because a breach in a privileged LXC can give access to the Proxmox OS. I am therefore wondering if I should change my setup so LXCs that are exposed to external networsl through nthe proxy should be unpriviledged.

If they should be unpriviledged how do I then share the data that now is shared from the NAS VM?

My setup of machines on my Proxmox:
- VM with PCI sata controller passthrough share out data from 3 x 6Tb disks. Synced via Snapraid. Shares the same data through NFS and SMB – both personal, mailbox and shared datadrives
- LXC priviledged with Nextcloud personal data from NAS personale drives via NFS mounts
- LXC priviledged with Jellyfin videos drives via NFS from NAS
- LXC priviledged with xxx external service with data mountet from NAS via NFS
- ….
- LXC unpriviledged Proxy server

Users access their personal datadrives either via Nextcloud or via local smb mounts from their workstation.

So if my external LXC based services should be run in unpriviledged LXCs i need to have the shares mountet otherwise than through NFS. At the same time the drives should be shareablke through smb. I also need Snapraid to secure my data

I shall note that my server is a low power Intel N6005 based MB running personal shares, mailserver, video and music streaming all together 3 Vms and 12 LXCs for all 6 members of the family, so everything has to be very ressource efficient.

What is your best advice - is my setup secure behind the proxy or should I restructure everything to unpriviledged LXCs?
If reconstruction is the best - how can i share the same data til the LXCs and to workstations via SMB?