Is it possible to use a reverse ssh tunnel to force all network connection on the remote host through the local host.

Essentially:

local -> ssh -> remote remote web request -> ssh tunnel -> local -> internet

I want the remote to make connections through the locals VPN without having to authenticate on the remote as well

Hopefully this makes sense

  • ShimitarA
    link
    fedilink
    English
    arrow-up
    2
    ·
    22 hours ago

    I see that containers get lot of love, but really setting up wireguard is writing a text config file, why would you need containers for that?

    • Melmi@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      19 hours ago

      One use for wireguard in a container is that if you’re using other containers on the same host you can use container magic to route the traffic of specific containers through the wireguard tunnel, while other containers bypass the tunnel.

    • null_dot@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      22 hours ago

      Well, you don’t need containers for wireguard the same way you don’t need containers for anything.

      I personally prefer docker containers for everything that can be containerised because it provides a consistent abstraction layer. As in, I always know how to find configurations and paths and manage network infrastructure for anything that resides in a container.

      In the case I outlined above with the wireguard containers, I’m more confident I’m not going to upset any other services on my server, and I understand the configuration.

      Maybe it’s a bit like using ufw to manage iptables rules, unnecessary but helpful.

      Of course, I freely admit that my way is not necessarily the best way and if someone wants to run wireguard on the host then great.

      • ShimitarA
        link
        fedilink
        English
        arrow-up
        2
        ·
        20 hours ago

        Thanks for the clarification, it make sense indeed, specially if you don’t come from a long term Unix background.

        Today Linux world feels more and more unnecessarily complicated somehow. I am getting old.