Skip to content

ktcunreal/torii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Torii

A simple, easy-to-use tunnel utility written in go.

Feature

  • AEAD Cipher
  • Lightweight
  • Obfuscate message length
  • Suspend illegal connections to filter active probing
  • Support compression for better web-browsing experience

Download

Download binary from github release page

Build from source

Tested on Linux / Windows x86_64, Go 1.13.3 or newer

git clone github.com/ktcunreal/torii

Install Dependencies:

go get golang.org/x/crypto/nacl/secretbox 
go get github.com/golang/snappy
go get github.com/andybalholm/brotli

Build binaries:

go build -o server server/main.go 
go build -o client client/main.go

Usage

Synchronize the clock on both server and client machines.

Server

./server -s "0.0.0.0:1234" -t "0.0.0.0:2345" -u "127.0.0.1:8123" -p "some-long-random-passphrase" -z "snappy"

or

./server -c /path/to/config.json

{
    "socksserver": "0.0.0.0:1234",
    "tcpserver": "0.0.0.0:2345",
    "upstream": "127.0.0.1:8123",
    "compression": "snappy",
    "key": "some-long-random-passphrase"
}

Client

./client -s "127.0.0.1:1234" -l "0.0.0.0:1080" -t "127.0.0.1:2345" -a "0.0.0.0:1081" -p "some-long-random-passphrase" -z "snappy"

or

./client -c /path/to/config.json

{
    "socksserver": "127.0.0.1:1234",
    "socksclient": "0.0.0.0:1080",
    "tcpserver": "127.0.0.1:2345",
    "tcpclient": "0.0.0.0:1081",
    "compression": "snappy",
    "key": "some-long-random-passphrase"
}

Docker

Run as server e.g.

docker run -d --net=host ktcunreal/torii server_linux_amd64 -s 0.0.0.0:8080 -p yourpassword -z snappy

Run as client e.g.

docker run -d --net=host ktcunreal/torii client_linux_amd64 -s yourserverip:8080 -l 0.0.0.0:8443 -p yourpassword -z snappy

Use a password consist of alphanumeric and symbols, at least 20 digits in length (Recommended)

Reference

https://github.com/golang/snappy

https://golang.org/x/crypto/nacl/secretbox

https://github.com/xtaci/kcptun

https://gfw.report/blog/ss_advise/en/

https://gist.github.com/clowwindy/5947691

License

GNU General Public License v3.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published