• 0 Posts
  • 7 Comments
Joined 2 years ago
cake
Cake day: June 17th, 2023

help-circle
  • Slotos@feddit.nltoLinux@lemmy.mlssh reverse tunnel
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    1 day ago
    • ssh to remote, forwarding some remote port to your local ssh port (-R)
    • ssh from remote through the exposed port, starting socks proxy in the process (-D)
    • use socks proxy explicitly or find some tool that can route the traffic into it

    Similar approach can be used to establish VPN tunnel with no encryption (ssh already provides that), routing everything but your ssh connection through it.

    • ssh to remote, reverse forwarding your VPN-over-tcp server’s listening port
    • establish vpn connection on remote, route everything but your ssh connection through the newly established interface

    It will be wasteful, but it will work.