mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-31 17:20:53 +02:00
chore: add wireguard tunnel for camille
This commit is contained in:
parent
e7b7a6586e
commit
519dacccc1
1 changed files with 9 additions and 2 deletions
|
@ -46,7 +46,7 @@
|
||||||
networkConfig.DHCP = "yes";
|
networkConfig.DHCP = "yes";
|
||||||
linkConfig.RequiredForOnline = "routable";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
};
|
};
|
||||||
wg0 = {
|
"30-wg0" = {
|
||||||
matchConfig.Name = "wg0";
|
matchConfig.Name = "wg0";
|
||||||
address = [
|
address = [
|
||||||
"10.100.45.1/24"
|
"10.100.45.1/24"
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
netdevs = {
|
netdevs = {
|
||||||
"50-wg0" = {
|
"10-wg0" = {
|
||||||
netdevConfig = {
|
netdevConfig = {
|
||||||
Kind = "wireguard";
|
Kind = "wireguard";
|
||||||
Name = "wg0";
|
Name = "wg0";
|
||||||
|
@ -77,6 +77,13 @@
|
||||||
AllowedIPs = [ "10.100.45.2/32" ];
|
AllowedIPs = [ "10.100.45.2/32" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
wireguardPeerConfig = {
|
||||||
|
PublicKey = "ElVrxNiYvV13hEDtqZNw4kLF7UiPTXziz8XgqABB0AU=";
|
||||||
|
AllowedIPs = [ "10.100.45.3/32" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue