Here’s my current setup:

Linux machine running Ubuntu Server hosting a bunch of apps through Docker Compose. The apps are made available externally using Cloudflare Tunnels as a reverse proxy, and the cloudflared service is running alongside all other Docker Compose apps as well.

When I want to make changes to my server configuration, I usually SSH locally into the server using its private internal IP. How can I connect the server to NordVPN using the command line while still allowing me to SSH into the server with its local IP? Also, will connecting to NordVPN break Cloudflare Tunnels?

  • weischin@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Whitelist your local network using the CLI as such -

    nordvpn whitelist add subnet 192.168.0.0/16
    

    Replace the IP with your subnet.

    Cloudflare tunnels will proxy your connection so I don’t think you can do both tunnels and NordVPN together.

    • marvchew@alien.top
      cake
      OPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Thanks, this worked! I whitelisted my subnet and Cloudflare Tunnels still works, I guess it’s because the cloudflared service is running within my subnet as well.