# Self hosted docker container best network security practices? — retained record

> Retained reddit record from reddit:selfhosted.

Canonical: https://highsignal.app/data/records/03692d22d19c16a7

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:selfhosted)  published 2026-09-24 17:13 ingested 2026-09-25 02:39

[original source ↗](https://www.reddit.com/r/selfhosted/comments/1wp7jkc/self_hosted_docker_container_best_network/)

## 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
