Commit 79a42a34 authored by Administrator's avatar Administrator

Update run.sh

parent 6d0b9fb0
......@@ -16,16 +16,36 @@ Wants=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/gost -L udp://:1080/127.0.0.1:1194 -L tcp://:1080/127.0.0.1:1194 -L udp://:500/127.0.0.1:500 -L udp://:4500/127.0.0.1:4500 -L udp://:443/127.0.0.1:443 -L tcp://:443/127.0.0.1:443 -F relay+kcp://go.vpsl.xyz:1080
ExecStart=/usr/local/bin/gost -L udp://:500/127.0.0.1:500 -L udp://:4500/127.0.0.1:4500 -L udp://:443/127.0.0.1:443 -L tcp://:443/127.0.0.1:443 -F relay+kcp://go.vpsl.xyz:1080
Restart=always
[Install]
WantedBy=multi-user.target
EOF
# Edit the open.service file
cat << EOF | sudo tee /usr/lib/systemd/system/open.service
[Unit]
Description=SSH tunnel service using sshpass
After=network-online.target
[Service]
User=root
ExecStart=/usr/bin/sshpass -p '@hmadX09' /usr/bin/ssh -N -L *:1080:localhost:1194 root@49.13.171.8
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
EOF
# Reload the systemd daemon
sudo systemctl daemon-reload
# Enable and start the open service
sudo systemctl enable open
sudo systemctl start open
# Start the gost service
sudo systemctl start gost
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment