项目作者: airtrack

项目描述 :
Simple SOCKS5/HTTP tunnel
高级语言: Rust
项目地址: git://github.com/airtrack/stunnel.git
创建时间: 2014-12-28T16:00:48Z
项目社区:https://github.com/airtrack/stunnel

开源协议:MIT License

下载


STunnel

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

  1. . | .
  2. . f .
  3. . i .
  4. HTTP -----| r |------ outbound1
  5. | e |
  6. | | |
  7. client---------------- tunnel ----------------server--- outbound2
  8. | | |
  9. | w |
  10. SOCKS5 -----| a |------ outbound3
  11. . l .
  12. . l .
  13. . | .

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

  1. ---------------- ------------- -----------
  2. | gatewaysocks | === TCP/UDP ==> | autoproxy | ===== TCP/UDP ====> | stunnel |
  3. ---------------- ------------- | -----------
  4. ^ ^ | -----------
  5. | | |== TCP/UDP ====> | direct |
  6. | | -----------
  7. ----------------- ------------------
  8. | other devices | | set system |
  9. | in the same | | proxy settings |
  10. | router | | to autoproxy |
  11. ----------------- ------------------