Skip to content

atpons/straightforward

Repository files navigation

straightforward

Minimal SOCKS proxy over SSH.

Build

$ bazel build cmd/straightforward

Usage

+-------------------+   +-------------------+   +---------------+
|                   |   |                   |   |               |
|   Local Machine   +---> Remote SSH Server +--->  Target Host  |
|                   |   |                   |   |               |
+----------+--------+   +-------------------+   +---------------+
           |
  SOCKS5   |
           |
+----------+--------+
|                   |
|  Any Application  |
|                   |
+-------------------+
$ bazel run cmd/straighforward -- -i <SSH Private Key> -u <SSH User> -h <Destination SSH Server>:<Port> -p <Listen SOCKS Proxy Port>

over SOCKS server (ocproxy mode)

You can use SOCKS5 proxy behind connection for SSH server (like ocproxy).

 +-------------------+   +------------------+   +-------------------+   +---------------+
 |                   |   |                  |   |                   |   |               |
 |   Local Machine   +--->SOCKS5 Local Proxy+---+ Remote SSH Server +--->  Target Host  |
 |                   |   |                  |   |                   |   |               |
 +----------+--------+   +------------------+   +-------------------+   +---------------+
            |
   SOCKS5   |
            |
 +----------+--------+
 |                   |
 |  Any Application  |
 |                   |
 +-------------------+
$ bazel run cmd/straighforward -- -i <SSH Private Key> -u <SSH User> -h <Destination SSH Server>:<Port> -p <Listen SOCKS Proxy Port> -ocproxy <Local SOCKS Server>:<Port>

About

SOCKS proxy over old-sshd server

Resources

Stars

Watchers

Forks

Packages

No packages published