Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UserConfig
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
UserConfig
Commits
295787a8
Commit
295787a8
authored
1 year ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
NET: blatto-wg -> wg-blatto
parent
fc5b88b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
network/wg-blatto
+11
-1
11 additions, 1 deletion
network/wg-blatto
with
11 additions
and
1 deletion
network/blatto
-wg
→
network/
wg-
blatto
+
11
−
1
View file @
295787a8
...
@@ -27,6 +27,7 @@ cat <<AMEN > /etc/net/wg-blatto
...
@@ -27,6 +27,7 @@ cat <<AMEN > /etc/net/wg-blatto
set -o xtrace
set -o xtrace
ip link del wg-blatto || true
ip link del wg-blatto || true
rm /run/wg-blatto/ || true
ip route flush table 12
ip route flush table 12
ip -6 route flush table 12
ip -6 route flush table 12
...
@@ -48,7 +49,14 @@ ip -6 route add throw fc00::/7 table 12
...
@@ -48,7 +49,14 @@ ip -6 route add throw fc00::/7 table 12
ip -6 route add
$v6net
::/64 dev wg-blatto table 12
ip -6 route add
$v6net
::/64 dev wg-blatto table 12
ip -6 rule add table 12
ip -6 rule add table 12
mkdir /run/wg-blatto/
if [
${
default_routing
::5
}
= auto: ]
then
echo
${
default_routing
:5
}
> /run/wg-blatto/autorouting
/etc/net/wg-blatto-route no
else
/etc/net/wg-blatto-route
$default_routing
/etc/net/wg-blatto-route
$default_routing
fi
AMEN
AMEN
cat
<<
AMEN
> /etc/net/wg-blatto-route
cat
<<
AMEN
> /etc/net/wg-blatto-route
...
@@ -106,6 +114,8 @@ then
...
@@ -106,6 +114,8 @@ then
ip addr del
$v4net
.
$id
/24 dev wg-blatto metric 100
ip addr del
$v4net
.
$id
/24 dev wg-blatto metric 100
ip addr add
$v4net
.
$id
/24 dev wg-blatto metric 100
ip addr add
$v4net
.
$id
/24 dev wg-blatto metric 100
fi
fi
echo
\$
1 > /run/wg-blatto/routing
AMEN
AMEN
chmod
+x /etc/net/wg-blatto
{
,-route
}
chmod
+x /etc/net/wg-blatto
{
,-route
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment