this post was submitted on 03 Jan 2024
1 points (100.0% liked)
Linux
125 readers
1 users here now
founded 2 years ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Are you using services running on the OS, Docker or VMs?
With Docker you can set the Network and have some containers traffic egress on the vpn while others have no WAN or direct access. You can have a container join multiple networks to have the best of both worlds.
With VMs, you can set the network interface
With the OS, you might be able to set network interface for each service, but I don’t know how
Thanks, I didn't know about any of this before. I'm running services on the OS (Raspbian, on a Raspberry Pi 3B+).
Should I be looking into running the web server or the VPN from docker to get access to these features?
I would recommend using some containerization process like Docker or Podman.
That way the state of each service is independent of each other and the dependencies don’t change.
For example, if one service needs python2 but another needs python3 you don’t have to manage that. The docker build file manages that for you