Skip to content

zxc111/h2proxy

Repository files navigation

h2proxy

Go Report Card Build Status

http2 proxy server && client

Android Client

如何运行

release 下载对应系统编译好的

./linux -conf conf.toml
./mac -conf conf.toml
或是
./win.exe -conf conf.toml

服务端

category = "server"            # 执行模式-服务端
[server]
	Server   = "0.0.0.0:1234"  # 监听地址和端口
	CaKey    = "xxx.key"       # 证书
	CaCrt    = "xxx.cert"      # 证书私钥
	NeedAuth = true            # 是否身份认证 
	Pprof    = 12345           # pprof 端口
	debug = true               # 是否开启 debug

[server.user]
    username = "aaa"        # 用户名
    passwd   = "bbb"        # 密码

客户端

sock5

category = "socks5"             
[client]
	Local    = '0.0.0.0:30000' 
	Proxy    = 'host:30000'
	needAuth = false
	Pprof    = 12345

http

category = "http"             
[client]
	Local    = '0.0.0.0:30000' 
	Proxy    = 'host:30000'
	needAuth = true
	Pprof    = 12345
[server.user]
    username = "aaa"
    passwd   = "bbb"