Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tun
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
tun
Commits
626487e1
Commit
626487e1
authored
Mar 28, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts
parent
ef4a146f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
clean-node.sh
clean-node.sh
+7
-0
config-with-proxy.sh
config-with-proxy.sh
+5
-2
No files found.
clean-node.sh
0 → 100755
View file @
626487e1
#!/bin/bash
NODE_NAME
=
$1
INTERFACE
=
mc-
$NODE_NAME
cd
ansible
ansible wg
-m
systemd
-b
-a
"name=wg-quick@
$INTERFACE
state=stopped enabled=false"
ansible wg
-m
shell
-b
-a
"echo -e
\"
flush interface
${
USERNAME
}
\\
nquit
\"
| timeout 1 nc ::1 33123"
cd
..
config-with-proxy.sh
View file @
626487e1
#!/bin/bash
ssh root@10.198.1.1
-p
55322 ipset add u_water_chnroute 10.198.1.57
LADDER
=
"water"
ssh root@10.198.1.1
-p
55322 ipset add u_
${
LADDER
}
_chnroute 10.198.1.57
ssh nanahira@10.198.0.6
sudo
ipset add u_
${
LADDER
}
_chnroute 10.198.1.57
./config.sh
ssh root@10.198.1.1
-p
55322 ipset del u_water_chnroute 10.198.1.57
ssh root@10.198.1.1
-p
55322 ipset del u_
${
LADDER
}
_chnroute 10.198.1.57
ssh nanahira@10.198.0.6
sudo
ipset del u_
${
LADDER
}
_chnroute 10.198.1.57
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