1

I run a web server (lighttpd) to serve a few pages to the world. I've installed the nordvpn client and when I run it two expected things happen:

  1. I lose my SSH connection to the machine, and
  2. My website becomes inaccessible to the public

Is it possible to run the VPN and still maintain the SSH connection on the local net and the web server connection on the internet?

top 2 comments
sorted by: hot top controversial new old
[-] Bldck@beehaw.org 0 points 7 months ago

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

[-] FarraigePlaisteach@kbin.social 1 points 7 months ago

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?

this post was submitted on 03 Jan 2024
1 points (100.0% liked)

Linux

59 readers
2 users here now

founded 1 year ago