exclude mullvad endpoint automatically
This commit is contained in:
parent
5e486be280
commit
ab7fcc7f78
1 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,8 @@
|
||||||
systemd.network =
|
systemd.network =
|
||||||
let
|
let
|
||||||
pubkey = "BChJDLOwZu9Q1oH0UcrxcHP6xxHhyRbjrBUsE0e07Vk=";
|
pubkey = "BChJDLOwZu9Q1oH0UcrxcHP6xxHhyRbjrBUsE0e07Vk=";
|
||||||
endpoint = "169.150.196.15:51820";
|
endpoint = "169.150.196.15";
|
||||||
|
port = "51820";
|
||||||
addr = [ "10.74.16.48/32" "fc00:bbbb:bbbb:bb01::b:102f/128" ];
|
addr = [ "10.74.16.48/32" "fc00:bbbb:bbbb:bb01::b:102f/128" ];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -19,7 +20,7 @@
|
||||||
wireguardPeers = [
|
wireguardPeers = [
|
||||||
{
|
{
|
||||||
PublicKey = pubkey;
|
PublicKey = pubkey;
|
||||||
Endpoint = endpoint;
|
Endpoint = "${endpoint}:${port}";
|
||||||
AllowedIPs = [ "0.0.0.0/0" "::0/0" ];
|
AllowedIPs = [ "0.0.0.0/0" "::0/0" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -59,7 +60,7 @@
|
||||||
To = net;
|
To = net;
|
||||||
}) [
|
}) [
|
||||||
# Mullvad endpoint
|
# Mullvad endpoint
|
||||||
"92.60.40.209/32"
|
"${endpoint}/32"
|
||||||
# "10.0.0.0/8"
|
# "10.0.0.0/8"
|
||||||
"10.13.37.0/24"
|
"10.13.37.0/24"
|
||||||
"10.66.66.0/24"
|
"10.66.66.0/24"
|
||||||
|
|
Loading…
Add table
Reference in a new issue