Hello! I have a free account at hide.me and would like to try to use it with my docker compose containers. The free plan does not give me the keys for openVPN of Wireguard configuration, but only through the official client. I’d like then to create a docker container that runs the official hide.me client inside, and exposes it to other docker containers (like gluetun does, for instance). I’d also like to implement a killswitch or something like that to prevent ip leakage. Is this something easy-medium hard or something very complex? I already have a script that installs and runs the client to enable vpn that should be run at startup, but I miss the “expose the network interface” and the “do not expose it if not connected” (this last part I think is pretty easy with a basic firewall configuration)

any tips/something already done?
thanks in advance!

EDIT: probably crazy idea, but would it be possible to do this in gluetun?

    • tubbaduOP
      link
      fedilink
      4
      edit-2
      5 months ago

      isn’t it an entire OS? I only need to bind the internet traffic of my container to the ones I want doing something like network_mode: container:myhidemecontainer in docker compose

        • tubbaduOP
          link
          fedilink
          35 months ago

          Hide.me free tier does not allow unofficial clients (they doesn’t give you the wireguard keys) otherwise I’d use gluetun for sure!

          • @h3ndrik@feddit.de
            link
            fedilink
            1
            edit-2
            5 months ago

            Fair enough. I got confused by their FAQ. They say Wireguard is supported on their free plan. But there is no config available with the keys, so you have to use their client to connect.

            I recently registered an account and wanted to do something similar. Guess it isn’t that easy then. Another possibility is to use protonvpn.com they also offer a free tier and you can connect any Wireguard client with that.

            Or you switch protocols and use for example IKEv2 with strongswan or OpenVPN or whatever hide.me offers in addition to wireguard. I think gluetun also does OpenVPN. But hide.me isn’t listed for some reason.

            • tubbaduOP
              link
              fedilink
              25 months ago

              I used to use proton vpn but I recently learned that torrenting is not allowed on the free tier, so I had to look for alternatives, and none of them offers a free tier with openvpn or wireguard keys that allows torrenting :(

              • @h3ndrik@feddit.de
                link
                fedilink
                2
                edit-2
                5 months ago

                Ah, well I just learned about the existence of free vpn services. I’m going to use it to set up a free guest wifi, so the neighbors, guests (and I) can do whatever with it. But I also struggle with the setup. It’s complicated to get the wireguard interface set up, the guest wifi isolated and set up the split routing and everything so the different wifis on the router forward the traffic over different services.

      • @library_napper
        link
        25 months ago

        The risk if human error is too high. Docker isn’t designed for security. What you want is Qubes. Its destined to do these things.