Self hosted docker container best network security practices?
retained text
As I get deeper into self hosting I’m learning more about container network security and want to lock down my containers even further. Overall I seem to have 3 groups of containers - do not need LAN or WAN access - need LAN (limited IPs) but no WAN access - need limited LAN and also WAN access I’m wondering how people isolate their containers. I am running mine on a synology NAS with container manager. I have a UniFi gateway. The synology resides on trusted VLAN 10. I already have VLAN 30 for IoT and VLAN 40 for IoT LAN only. First group is easy - set network to internal: true and use reverse proxy to access the container. For the other 2 groups there are several ways to do it but not sure which is ideal for maintenance. For research seems like macvlan is an option, connect a second Ethernet port to my switch to VLAN 30, use CLI to set firewall rules in synology (unfortunately no GUI for egress rules). What do you all do?
document fetched 2026-09-25 00:31 · canonical https://reddit.com/r/selfhosted/comments/1wp7jkc/self_hosted_docker_container_best_network