mirror of https://github.com/ginuerzh/gost
3 changed files with 14 additions and 13 deletions
@ -4,10 +4,11 @@ gost - GO Simple Tunnel |
|||||
###GO语言实现的安全隧道 |
###GO语言实现的安全隧道 |
||||
|
|
||||
####特性 |
####特性 |
||||
1. 支持标准socks5协议(rfc1928)。 |
1. 客户端可同时用作http(s), socks5代理。 |
||||
2. 多种加密方式(tls, 以及aes-256-cfb, des-cfb, rc4-md5等shadowsocks兼容的加密方式)。 |
2. 服务器端使用标准的socks5协议,可直接作为socks5代理。 |
||||
3. 客户端兼容shadowsocks协议。 |
3. 多种加密方式(tls, aes-256-cfb, des-cfb, rc4-md5等)。 |
||||
4. 支持设置上层http代理 |
4. 客户端兼容shadowsocks协议,可作为shadowsocks服务器。 |
||||
|
5. 支持设置上层http代理。 |
||||
|
|
||||
####参数说明 |
####参数说明 |
||||
> -L=":8080": listen address |
> -L=":8080": listen address |
||||
@ -20,15 +21,15 @@ gost - GO Simple Tunnel |
|||||
|
|
||||
> -key="key.pem": key.pem file for tls |
> -key="key.pem": key.pem file for tls |
||||
|
|
||||
> -m="tls": cipher method |
> -m="tls": tunnel cipher method |
||||
|
|
||||
> -p="[email protected]": cipher password |
> -p="[email protected]": tunnel cipher password |
||||
|
|
||||
> -sm="rc4-md5": shadowsocks cipher method |
> -sm="rc4-md5": shadowsocks cipher method |
||||
|
|
||||
> -sp="[email protected]": shadowsocks cipher password |
> -sp="[email protected]": shadowsocks cipher password |
||||
|
|
||||
> -ss=false: shadowsocks compatible |
> -ss=false: run as shadowsocks server |
||||
|
|
||||
|
|
||||
####使用方法 |
####使用方法 |
||||
|
|||||
@ -20,11 +20,11 @@ func init() { |
|||||
flag.StringVar(&Proxy, "P", "", "proxy for forward") |
flag.StringVar(&Proxy, "P", "", "proxy for forward") |
||||
flag.StringVar(&Saddr, "S", "", "the server that connecting to") |
flag.StringVar(&Saddr, "S", "", "the server that connecting to") |
||||
flag.StringVar(&Laddr, "L", ":8080", "listen address") |
flag.StringVar(&Laddr, "L", ":8080", "listen address") |
||||
flag.StringVar(&Method, "m", "tls", "cipher method") |
flag.StringVar(&Method, "m", "tls", "tunnel cipher method") |
||||
flag.StringVar(&Password, "p", "[email protected]", "cipher password") |
flag.StringVar(&Password, "p", "[email protected]", "tunnel cipher password") |
||||
flag.StringVar(&CertFile, "cert", "cert.pem", "cert.pem file for tls") |
flag.StringVar(&CertFile, "cert", "cert.pem", "cert.pem file for tls") |
||||
flag.StringVar(&KeyFile, "key", "key.pem", "key.pem file for tls") |
flag.StringVar(&KeyFile, "key", "key.pem", "key.pem file for tls") |
||||
flag.BoolVar(&Shadows, "ss", false, "shadowsocks compatible") |
flag.BoolVar(&Shadows, "ss", false, "run as shadowsocks server") |
||||
flag.StringVar(&SMethod, "sm", "rc4-md5", "shadowsocks cipher method") |
flag.StringVar(&SMethod, "sm", "rc4-md5", "shadowsocks cipher method") |
||||
flag.StringVar(&SPassword, "sp", "[email protected]", "shadowsocks cipher password") |
flag.StringVar(&SPassword, "sp", "[email protected]", "shadowsocks cipher password") |
||||
flag.Parse() |
flag.Parse() |
||||
|
|||||
Loading…
Reference in new issue