39 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  /*
 | 
						|
  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;
 | 
						|
      } ];
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |