Fix wireguard to work with link local addr
This commit is contained in:
parent
1c5efc4e03
commit
7b34157278
@ -37,6 +37,10 @@
|
||||
"fe80::42:1/128"
|
||||
# peer fe80::42:42:1/128
|
||||
];
|
||||
postSetup = ''
|
||||
ip -6 route flush dev %i
|
||||
ip addr del dev %i fe80::42:1/128 && ip addr add dev %i fe80::42:1/128 peer fe80::42:42:1/128
|
||||
'';
|
||||
listenPort = 50197;
|
||||
allowedIPsAsRoutes = false;
|
||||
peers = [
|
||||
@ -54,6 +58,10 @@
|
||||
"fe80::43:43:1/128"
|
||||
# peer fe80::43:1/128
|
||||
];
|
||||
postSetup = ''
|
||||
ip -6 route flush dev %i
|
||||
ip addr del dev %i fe80::43:43:1/128 && ip addr add dev %i fe80::43:43:1/128 peer fe80::43:1/128
|
||||
'';
|
||||
listenPort = 50565;
|
||||
allowedIPsAsRoutes = false;
|
||||
peers = [
|
||||
@ -71,6 +79,10 @@
|
||||
"fe80::1/128"
|
||||
# peer fe80::2/128
|
||||
];
|
||||
postSetup = ''
|
||||
ip -6 route flush dev %i
|
||||
ip addr del dev %i fe80::1/128 && ip addr add dev %i fe80::1/128 peer fe80::2/128
|
||||
'';
|
||||
listenPort = 51271;
|
||||
allowedIPsAsRoutes = false;
|
||||
peers = [
|
||||
@ -87,6 +99,10 @@
|
||||
"fe80::1:1/128"
|
||||
# peer fe80::1:2/128
|
||||
];
|
||||
postSetup = ''
|
||||
ip -6 route flush dev %i
|
||||
ip addr del dev %i fe80::1:1/128 && ip addr add dev %i fe80::1:1/128 peer fe80::1:2/128
|
||||
'';
|
||||
listenPort = 51272;
|
||||
allowedIPsAsRoutes = false;
|
||||
peers = [
|
||||
|
Loading…
Reference in New Issue
Block a user