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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
UserConfig
Commits
4e24e7a6
Commit
4e24e7a6
authored
1 year ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
NET hopik blatto ipv6 + blatto route
parent
dfac8b3b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
network/hopik/dhcpcd.conf
+1
-1
1 addition, 1 deletion
network/hopik/dhcpcd.conf
network/hopik/dhcpcd.enter-hook
+27
-3
27 additions, 3 deletions
network/hopik/dhcpcd.enter-hook
network/hopik/scripts/con-sm
+4
-2
4 additions, 2 deletions
network/hopik/scripts/con-sm
with
32 additions
and
6 deletions
network/hopik/dhcpcd.conf
+
1
−
1
View file @
4e24e7a6
...
...
@@ -68,7 +68,7 @@ noipv6rs
ssid
blatto
-
jk
-
5
g
static
ip_address
=
10
.
12
.
11
.
22
/
24
static
ip6_address
=
2
a01
:
510
:
d504
:
751
0
::
22
/
64
static
ip6_address
=
2
a01
:
510
:
d504
:
751
a
::
22
/
64
static
routers
=
10
.
12
.
11
.
1
static
domain_name_servers
=
10
.
12
.
11
.
1
static
domain_name
=
jk
.
blatto
.
eu
...
...
This diff is collapsed.
Click to expand it.
network/hopik/dhcpcd.enter-hook
+
27
−
3
View file @
4e24e7a6
...
...
@@ -11,6 +11,30 @@ conntrack_hack(){
(
echo
R | socat unix:/run/conntrack_hack -
)
&
fi
}
route6
(){
if
[
"
$reason
"
==
STATIC6
]
then
echo
$msg_prefix
add ip route:
$@
ip
-6
route add
$@
fi
if
[
"
$reason
"
==
NOCARRIER
]
then
echo
$msg_prefix
del ip route:
$@
ip
-6
route del
$@
fi
}
route
(){
if
[
"
$reason
"
==
STATIC
]
then
echo
$msg_prefix
add ip route:
$@
ip
-4
route add
$@
fi
if
[
"
$reason
"
==
NOCARRIER
]
then
echo
$msg_prefix
del ip route:
$@
ip
-4
route del
$@
fi
}
if
[[
"
$interface
"
==
w
]]
then
...
...
@@ -21,7 +45,7 @@ then
if
[
"
$reason
"
==
STATIC6
]
then
echo
$msg_prefix
set
ipv6 default route
ip
-6
route
add
default via 2001:718:1e03:81a::1
route
6
default via 2001:718:1e03:81a::1
dev w
fi
fi
...
...
@@ -30,8 +54,8 @@ then
conntrack_hack
if
[
"
$reason
"
==
STATIC6
]
then
echo
$msg_prefix
set
ipv6 default route
ip
-6
route add default via 2a01:510:d504:7510::1
route6 default via 2a01:510:d504:7510::1 dev w
route 10.12.0.0/16 via 10.12.11.1 dev wg-blatto
fi
fi
...
...
This diff is collapsed.
Click to expand it.
network/hopik/scripts/con-sm
+
4
−
2
View file @
4e24e7a6
...
...
@@ -8,7 +8,9 @@ interface=sm
echo
R | socat unix:/run/conntrack_hack -
ip
link set
$interface
up
ip addres add 10.12.11.22/24 dev
$interface
ip addres add 2a01:510:d504:7510::22/64 dev
$interface
ip addres add 2a01:510:d504:751a::22/64 dev
$interface
ip route add 10.12.0.0/16 via 10.12.11.1 dev
$interface
ip route add 2a01:510:d504:7500::0/56 via 2a01:510:d504:751a::1 dev wg-blatto metric 1000
ip route add default via 10.12.11.1 dev
$interface
ip route add default via 2a01:510:d504:751
0
::1 dev
$interface
ip route add default via 2a01:510:d504:751
a
::1 dev
$interface
(
echo
domain jk.blatto.eu
;
echo
nameserver 10.12.11.1
)
| resolvconf
-a
$interface
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