What do you guys use / recommend to set up your own VPN to access your LAN services remotely?

  • goodhunter@lemm.ee
    link
    fedilink
    English
    arrow-up
    13
    ·
    1 year ago

    People seem to like and recommend Tailscale. I have not gotten to setting it up. My setup involves reverse proxy with treafik and my services in docker. Any suggestions on how what I need to do would be welcome.

    • randombullet@lemmy.world
      link
      fedilink
      English
      arrow-up
      10
      ·
      1 year ago

      This is the exact script I use to install tailscale on my VPN server

      Installing Tailscale

       curl -fsSL https://tailscale.com/install.sh | sh 
      

      Enable IP forwarding

       echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf 
       echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf 
       sudo sysctl -p /etc/sysctl.conf 
      

      Advertise subenets and exit node

       tailscale up --advertise-exit-node --advertise-routes=192.168.0.0/24,192.168.2.0/28,192.168.5.0/24,192.168.10.0/24
      
      • goodhunter@lemm.ee
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Thank you for message, i appreciate the effort.

        Where I struggle is the part where i need to expose my subnet within Tailscale. I don’t have any machineip:port delegated to the services anymore.

        I got a domain name through CF, and have traefik generate unique url links as *service.mydomain.com that routes it to the specific service running in docker on my localmachine. It also takes care of certificates. Calling that service url only works within the local network.

        In my docker compose set up, I removed all the ports as I dont access the services via ip:port. I hope this makes sense to you.

        So it seems I need to configure Tailscale in such a way I can tunnel to my home network and then make the service.mydomain.com call. And that is where it got too complicated for me right now.

        I also fail to understand if I need to run Tailscale native or in (the same) docker env.

    • ashok36@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I’ve been using it for maybe a year now and it’s been rock solid. Highly recommended.