petalius: wg: setup dns
This commit is contained in:
		
							parent
							
								
									e7e07d732a
								
							
						
					
					
						commit
						d8008d3bef
					
				@ -93,6 +93,12 @@
 | 
				
			|||||||
    ips = ["10.59.0.2/16"];
 | 
					    ips = ["10.59.0.2/16"];
 | 
				
			||||||
    privateKeyFile = "/etc/wgkeys/petalius";
 | 
					    privateKeyFile = "/etc/wgkeys/petalius";
 | 
				
			||||||
    allowedIPsAsRoutes = true;
 | 
					    allowedIPsAsRoutes = true;
 | 
				
			||||||
 | 
					    postSetup = ''
 | 
				
			||||||
 | 
					      printf "nameserver 10.57.0.1" | ${pkgs.openresolv}/bin/resolvconf -a wg0 -m 0
 | 
				
			||||||
 | 
					    '';
 | 
				
			||||||
 | 
					    postShutdown = ''
 | 
				
			||||||
 | 
					      ${pkgs.openresolv}/bin/resolvconf -d wg0
 | 
				
			||||||
 | 
					    '';
 | 
				
			||||||
    peers = [{
 | 
					    peers = [{
 | 
				
			||||||
      publicKey = "ByLlJbevlTBooAo2RIZGGJvBHKqA9qiOpHBvR5yuJX4=";
 | 
					      publicKey = "ByLlJbevlTBooAo2RIZGGJvBHKqA9qiOpHBvR5yuJX4=";
 | 
				
			||||||
      allowedIPs = ["10.56.0.0/14" "10.60.1.1"];
 | 
					      allowedIPs = ["10.56.0.0/14" "10.60.1.1"];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user