Skip to content

airtrack/stunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STunnel

Simple SOCKS5/HTTP tunnel. SOCKS5 on client side provides NO AUTHENTICATION TCP/UDP proxy. Version 2.0 based on QUIC and TLS-TCP.

                .                      |                     .
                .                      f                     .
                .                      i                     .
      HTTP -----|                      r                     |------ outbound1
                |                      e                     |
                |                      |                     |
             client---------------- tunnel ----------------server--- outbound2
                |                      |                     |
                |                      w                     |
    SOCKS5 -----|                      a                     |------ outbound3
                .                      l                     .
                .                      l                     .
                .                      |                     .

Version 2.0 status

Proxy type

  • HTTP proxy
  • SOCKS5 TCP proxy
  • SOCKS5 UDP proxy

Tunnel type

  • QUIC
  • TLS-TCP(based on TLS on TCP)

Usage

  1. ./certgen generates cert and private key
  2. modify config/client.toml and config/server.toml
  3. start server(./stunnel_server config/server.toml) and client(./stunnel_client config/client.toml) with the same cert

Browser connect client address(127.0.0.1:1080) via SOCKS5 or connect client address(127.0.0.1:8080) via HTTP.

Work with autoproxy and gatewaysocks

    ----------------                 -------------                        -------------
    |              |                 |           |                        |           |
    | gatewaysocks | --- TCP/UDP --> | autoproxy | ------- TCP/UDP -----> |  stunnel  |
    |              |                 |           |    |                   |           |
    ----------------                 -------------    |                   -------------
           ^                               ^          |
           |                               |          |                   -------------
           |                               |          |                   |           |
           |                               |          |--- TCP/UDP -----> |  direct   |
           |                               |                              |           |
           |                               |                              -------------
    -----------------             ------------------
    |    devices    |             |   set system   |
    |  in the same  |             | proxy settings |
    |    router     |             |  to autoproxy  |
    -----------------             ------------------

About

Simple SOCKS5/HTTP tunnel

Topics

Resources

License

Stars

Watchers

Forks

Languages