gost
gost配置
项目地址:https://github.com/ginuerzh/gost
1.服务端
- 下载linux客户端
wget https://github.com/ginuerzh/gost/releases/download/v2.5/gost_2.5_linux_AMD64.tar.gz
tar -zxvf gost_2.5_linux_amd64.tar.gz
mv gost_2.5_linux_amd64 /usr/local/gost_2.5
cd /usr/local/gost_2.5
- 注册systemd服务
vim gost.service
[Unit]
Description=SS
After=syslog.target
After=network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/usr/local/gost_2.5
ExecStart=/usr/local/gost_2.5/gost -L=ss://chacha20:123123123@:1192 -L=http2://用户名:密码@0.0.0.0:15000 -L=用户名:密码@0.0.0.0:14000
Restart=always
[Install]
WantedBy=multi-user.target
cp gost.service /etc/systemd/system
chmod 754 /etc/systemd/system/gost.service
- 设置开机自启和启动服务
systemctl enable gost.service
systemctl start gost.service
# 在开机时启用一个服务:systemctl enable gost.service
# 在开机时禁用一个服务:systemctl disable gost.service
# 启动一个服务:systemctl start gost.service
# 关闭一个服务:systemctl stop gost.service
# 重启一个服务:systemctl restart gost.service
# 显示一个服务的状态:systemctl status gost.service
# 查看服务是否开机启动:systemctl is-enabled gost.service
# 查看已启动的服务列表:systemctl list-unit-files|grep enabled
2.客户端配置
gost -L=:8899 -F=socks+tls://服务器ip:20000?cert=cert.pem&key=key.pem
pause
- 启动客户端
启动批处理文件