change wireguard config to include DNS
This commit is contained in:
@@ -5,16 +5,17 @@
|
||||
{ip}: {
|
||||
networking = {
|
||||
firewall.allowedUDPPorts = [56878];
|
||||
wireguard = {
|
||||
enable = true;
|
||||
wg-quick = {
|
||||
# enable = true;
|
||||
interfaces.wg0 = {
|
||||
ips = [ ("192.168.87." + builtins.toString(ip) + "/32")];
|
||||
adress = [ ("192.168.87." + builtins.toString(ip) + "/32")];
|
||||
listenPort = 56878;
|
||||
privateKeyFile = "/root/wg.keys";
|
||||
dns = [ "192.168.178.108" ];
|
||||
|
||||
peers = [
|
||||
{
|
||||
name = "hub";
|
||||
# name = "hub";
|
||||
publicKey = "XEaJXQW+7llbreoK161NkMhFxlctL1UK8nFiY/GtuC0=";
|
||||
allowedIPs = [ "192.168.178.0/24" "192.168.87.127/32" "192.168.87.128/25"];
|
||||
endpoint = "173.249.36.74:56878";
|
||||
|
||||
Reference in New Issue
Block a user