Skip to content

kotx/triangle

Repository files navigation

Triangle

i guess we doin socks now

A simple TLS-with-SNI to SOCKS5/no socks/blackhole proxy inspired by sniproxy.

Installation

Install the latest release from GitHub releases:

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/kotx/triangle/releases/latest/download/triangle-proxy-installer.sh | sh

or build from source:

cargo install triangle-proxy

Configuration

Configuring Triangle is as simple as putting this in sniproxy.json:

{
  "listen_addr": "127.0.0.1:8443",
  "timeout_ms": 10000, // timeout to initial handshake
  "forwards": [
    {
      "src": ["myip.wtf", "*.bsky.app"],
      "dst": ["socks5://127.0.0.1:9150"] // retry functionality is to be implemented
    },
    {
      "src": ["*"], // fallback
      "dst": ["direct"] // forward connecton directly (useful for proxy servers)
    }
  ]
}

About

Simple SNI proxy written in Rust

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages