Skip to content
  • Categories
  • Recent
  • Tags
  • All Topics
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Caint logo. It's just text.
  1. Home
  2. Selfhosted
  3. Share single service via WireGuard

Share single service via WireGuard

Scheduled Pinned Locked Moved Selfhosted
selfhosted
8 Posts 4 Posters 14 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S This user is from outside of this forum
    S This user is from outside of this forum
    syaochan@feddit.it
    wrote last edited by
    #1

    I wanted to share a service I’m hosting, but didn’t feel comfortable just leaving publicly accessible, even behind a reverse proxy. In the meantime I did not want to give access to my whole lan with a VPN, or redirect all internet traffic from a client thru my network.
    So the idea is to run a WireGuard instance on my OpenWRT router in a completely isolated zone (input, output and forward set to reject on firewall) and then forward a single port from the service host’s.
    Client is android, so using WG Tunnel and split tunnel just for the relevant app should not impair client’s network access.
    Initial tests seems to be ok, is there anything I may have overlooked?
    Please feel free to comment.

    B phase@lemmy.8th.worldP 2 Replies Last reply
    5
    • S syaochan@feddit.it

      I wanted to share a service I’m hosting, but didn’t feel comfortable just leaving publicly accessible, even behind a reverse proxy. In the meantime I did not want to give access to my whole lan with a VPN, or redirect all internet traffic from a client thru my network.
      So the idea is to run a WireGuard instance on my OpenWRT router in a completely isolated zone (input, output and forward set to reject on firewall) and then forward a single port from the service host’s.
      Client is android, so using WG Tunnel and split tunnel just for the relevant app should not impair client’s network access.
      Initial tests seems to be ok, is there anything I may have overlooked?
      Please feel free to comment.

      B This user is from outside of this forum
      B This user is from outside of this forum
      bmcgonag@lemmy.world
      wrote last edited by
      #2

      I think this is exactly what Pangolin was designed for and does.

      S 1 Reply Last reply
      0
      • B bmcgonag@lemmy.world

        I think this is exactly what Pangolin was designed for and does.

        S This user is from outside of this forum
        S This user is from outside of this forum
        syaochan@feddit.it
        wrote last edited by
        #3

        Isn’t Pangolin just a reverse proxy?

        C 1 Reply Last reply
        0
        • S syaochan@feddit.it

          Isn’t Pangolin just a reverse proxy?

          C This user is from outside of this forum
          C This user is from outside of this forum
          chogchog@lemmy.world
          wrote last edited by
          #4

          The connection between your Pangolin service (hosted outside your network) and your LAN is through a VPN. Essentially you’re creating a proxy that you can point your domain address at which isn’t your house’s IP address. Plus then everything inside your network is still secure behind your VPN.

          So you connect to Pangolin, and Pangolin routes the traffic to your network.

          S 1 Reply Last reply
          0
          • S syaochan@feddit.it

            I wanted to share a service I’m hosting, but didn’t feel comfortable just leaving publicly accessible, even behind a reverse proxy. In the meantime I did not want to give access to my whole lan with a VPN, or redirect all internet traffic from a client thru my network.
            So the idea is to run a WireGuard instance on my OpenWRT router in a completely isolated zone (input, output and forward set to reject on firewall) and then forward a single port from the service host’s.
            Client is android, so using WG Tunnel and split tunnel just for the relevant app should not impair client’s network access.
            Initial tests seems to be ok, is there anything I may have overlooked?
            Please feel free to comment.

            phase@lemmy.8th.worldP This user is from outside of this forum
            phase@lemmy.8th.worldP This user is from outside of this forum
            phase@lemmy.8th.world
            wrote last edited by phase@lemmy.8th.world
            #5

            You don’t really need forwarding as you don’t need NAT here.

            A part of the filtering can be done by wireguard by setting the allowed IPs correctly. Just check if only one service is listening on the server port you’ll allow.

            Now a question: all without tls right? 😉

            S 1 Reply Last reply
            2
            • phase@lemmy.8th.worldP phase@lemmy.8th.world

              You don’t really need forwarding as you don’t need NAT here.

              A part of the filtering can be done by wireguard by setting the allowed IPs correctly. Just check if only one service is listening on the server port you’ll allow.

              Now a question: all without tls right? 😉

              S This user is from outside of this forum
              S This user is from outside of this forum
              syaochan@feddit.it
              wrote last edited by
              #6

              Could you elaborate what you mean with setting the allowed IPs? Yes, without tls.

              1 Reply Last reply
              0
              • C chogchog@lemmy.world

                The connection between your Pangolin service (hosted outside your network) and your LAN is through a VPN. Essentially you’re creating a proxy that you can point your domain address at which isn’t your house’s IP address. Plus then everything inside your network is still secure behind your VPN.

                So you connect to Pangolin, and Pangolin routes the traffic to your network.

                S This user is from outside of this forum
                S This user is from outside of this forum
                syaochan@feddit.it
                wrote last edited by
                #7

                If I understood correctly I should either get a VPS to host Pangolin or use their cloud. This would increase the costs right?

                C 1 Reply Last reply
                0
                • S syaochan@feddit.it

                  If I understood correctly I should either get a VPS to host Pangolin or use their cloud. This would increase the costs right?

                  C This user is from outside of this forum
                  C This user is from outside of this forum
                  chogchog@lemmy.world
                  wrote last edited by
                  #8

                  Yes, correct. You can always locally host it as there are other benefits like unifying user credentials for all your hosted services. But its primary design is to be hosted externally.

                  currently I host everything locally, but I don’t like the fact that anyone visiting my domain can easily find my address.

                  I’m in the process of determining on if I set up Pangolin myself or not.
                  Another huge benefit is higher availability.
                  (ex. If my internet goes down at home, I won’t know until I try to connect, but if I have an external service and it’s monitoring that connection, it can inform me when it loses connection)

                  Price is certainly something to consider when weighing its value for your setup

                  1 Reply Last reply
                  0

                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • All Topics
                  • Popular
                  • World
                  • Users
                  • Groups