update lock, related fixes
This commit is contained in:
parent
2623df1e00
commit
aa189315f0
9 changed files with 142 additions and 161 deletions
39
systems/msi/airvpn.nix
Normal file
39
systems/msi/airvpn.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
/*
|
||||
networking.firewall.allowedUDPPorts = [ 51820 ];
|
||||
|
||||
networking.wireguard.interfaces = {
|
||||
airvpn-america = {
|
||||
listenPort = 51820;
|
||||
|
||||
ips = [ "10.154.49.7/32" "fd7d:76ee:e68f:a993:be60:c90c:c237:479c/128" ];
|
||||
mtu = 1320;
|
||||
privateKeyFile = "/root/wireguard-keys/airvpn-america.private_key";
|
||||
|
||||
peers = [ {
|
||||
publicKey = "PyLCXAQT8KkM4T+dUsOQfn+Ub3pGxfGlxkIApuig+hk=";
|
||||
presharedKeyFile = "/root/wireguard-keys/airvpn-america.preshared_key";
|
||||
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
||||
endpoint = "america.vpn.airdns.org:1637";
|
||||
persistentKeepalive = 15;
|
||||
} ];
|
||||
};
|
||||
};
|
||||
*/
|
||||
networking.wg-quick.interfaces = {
|
||||
airvpn-america = {
|
||||
address = [ "10.154.49.7/32" "fd7d:76ee:e68f:a993:be60:c90c:c237:479c/128" ];
|
||||
dns = [ "10.128.0.1" "fd7d:76ee:e68f:a993::1" ];
|
||||
mtu = 1320;
|
||||
privateKeyFile = "/root/wireguard-keys/airvpn-america.private_key";
|
||||
|
||||
peers = [ {
|
||||
publicKey = "PyLCXAQT8KkM4T+dUsOQfn+Ub3pGxfGlxkIApuig+hk=";
|
||||
presharedKeyFile = "/root/wireguard-keys/airvpn-america.preshared_key";
|
||||
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
||||
endpoint = "america.vpn.airdns.org:1637";
|
||||
persistentKeepalive = 15;
|
||||
} ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue