Switch to wg-quick for clients, seems more reliable
This commit is contained in:
parent
160dd14d55
commit
06e1964f7d
2 changed files with 3 additions and 8 deletions
|
@ -10,7 +10,7 @@
|
|||
];
|
||||
|
||||
networking.hostName = "envy";
|
||||
networking.wireguard.interfaces.wgc.ips = [ "10.100.0.25/24" ];
|
||||
networking.wg-quick.interfaces.wgc.address = [ "10.100.0.25/24" ];
|
||||
|
||||
system = {
|
||||
lanzaboote.enable = true;
|
||||
|
|
|
@ -7,13 +7,8 @@
|
|||
|
||||
config = lib.mkIf config.system.wireguard.client.enable {
|
||||
networking = {
|
||||
firewall = {
|
||||
allowedUDPPorts = [ 51820 ];
|
||||
trustedInterfaces = [ "wgc" ];
|
||||
};
|
||||
|
||||
wireguard.interfaces.wgc = {
|
||||
listenPort = 51820;
|
||||
firewall.trustedInterfaces = [ "wgc" ];
|
||||
wg-quick.interfaces.wgc = {
|
||||
privateKey = config.secrets.wgClientPriv;
|
||||
peers = [
|
||||
{ # Cyberspark Server
|
||||
|
|
Loading…
Add table
Reference in a new issue