tcp-proxy
simple tcp proxy for server
Tcp-proxy is a high-performance proxy for tcp layer by Go, Just like other tcp proxy such as nginx, haproxy. you can use it to split your traffic to a few backends. Tcp-proxy aims to simplify the tcp-proxy solution of Proxy.
1 Install Go
2 git clone https://github.com/kobehaha/tcp-proxy-system.git
3 cd tcp-proxy-system
4 make
5 cd bin
6 proxyd
default config file
default config PATH
$(tcp-proxy-system)/config/default.json
start
tcp-proxy-system/bin/proxyd
special config file
start
proxyd -conf=/etc/config.json
log
2017/10/21 23:31:12 success load config file: /etc/default.json
2017/10/21 23:31:12 server.go
start server and server address is :1001
2017/10/21 23:31:12 server.go
proxy server start ok
2017/10/21 23:31:17 proxy_tcp.go
clean backendUrl which is not available -----> 192.168.33.19:8000
Tcp-proxy is under the GPL license. See the LICENSE directory for details.