Total Pageviews

Monday, 19 August 2019

socks代理服务器程序:lightsocks-by-mitnk

登陆linux vps.首先安装go环境,然后,
cd $GOPATH
go get -u -v github.com/mitnk/lightsocks
(可执行文件lightsocks就会出现在$GOBIN/里面)

openssl rand -base64 32 > ~/.lightsockskey

[root@host ~]# lightsocks -host 127.0.0.1 -port 2377
[2019-08-19 18:47:09][0] lightsocks v1.6.2
[2019-08-19 18:47:09][0] listen on 127.0.0.1:2377

可以用systemd把此命令:lightsocks -host 127.0.0.1 -port 2377运行在后台。

项目地址:https://github.com/mitnk/lightsocks

No comments:

Post a Comment