WireGuard clients connect only to one sisko
's interface
This commit is contained in:
parent
1caf6855f0
commit
86e08cad69
1 changed files with 1 additions and 8 deletions
|
@ -7,20 +7,13 @@
|
|||
|
||||
networking.wireguard.interfaces.wg0 = {
|
||||
ips = ["${vpn.${config.networking.hostName}.ip}/32"];
|
||||
# TODO having two peers like this a good idea? (they are the same host)
|
||||
peers = [
|
||||
{
|
||||
publicKey = vpn.sisko.publicKey; # FIXME hardcoding `sisko` here
|
||||
publicKey = vpn.sisko.publicKey;
|
||||
allowedIPs = ["10.100.0.0/24"];
|
||||
endpoint = "vpn.aciceri.dev:51820";
|
||||
persistentKeepalive = 25;
|
||||
}
|
||||
{
|
||||
publicKey = vpn.sisko.publicKey; # FIXME hardcoding `sisko` here
|
||||
allowedIPs = ["10.100.0.0/24"];
|
||||
endpoint = "10.1.1.2:51820";
|
||||
persistentKeepalive = 25;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue