[ASUS] Configuration client Wireguard
This commit is contained in:
parent
5a7d3b2b1c
commit
c7bda3bc1f
@ -168,6 +168,21 @@
|
||||
# Or disable the firewall altogether.
|
||||
networking.firewall.enable = false;
|
||||
|
||||
networking.wireguard.interfaces = {
|
||||
wg0 = {
|
||||
ips = [ "192.168.20.2/24" ];
|
||||
allowedIPsAsRoutes = false;
|
||||
peers = [
|
||||
{
|
||||
allowedIPs = [ "0.0.0.0/0" ];
|
||||
endpoint = "nyanlout.re:51820";
|
||||
publicKey = "NVLJ30kNP+fK+K3oM1LAcQpvZvz1dvBD8mWNjDf5Z2k=";
|
||||
}
|
||||
];
|
||||
privateKeyFile = "/var/lib/wireguard/wg0.privatekey";
|
||||
};
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user