Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
radius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
radius
Commits
79a42a34
Commit
79a42a34
authored
Dec 26, 2023
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update run.sh
parent
6d0b9fb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
run.sh
run.sh
+21
-1
No files found.
run.sh
View file @
79a42a34
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment