Adapt LAN configuration
This commit is contained in:
parent
a389e1395d
commit
a0573d8aab
@ -13,7 +13,7 @@ in
|
||||
# Enable systemd-networkd
|
||||
networking = {
|
||||
hostName = "zion";
|
||||
hostId = "4e74ea68";
|
||||
hostId = "760bfad7";
|
||||
useDHCP = false;
|
||||
useNetworkd = true;
|
||||
dhcpcd.enable = false;
|
||||
@ -22,10 +22,10 @@ in
|
||||
|
||||
# Assign a static IP
|
||||
systemd.network.networks."24-home" = {
|
||||
name = "end0";
|
||||
matchConfig.Name = "end0";
|
||||
address = [ "192.168.13.2/24" ];
|
||||
gateway = [ "192.168.13.1" ];
|
||||
name = "enp2s0";
|
||||
matchConfig.Name = "enp2s0";
|
||||
address = [ "192.168.129.2/23" ];
|
||||
gateway = [ "192.168.128.1" ];
|
||||
dns = [
|
||||
"1.1.1.1"
|
||||
"9.9.9.9"
|
||||
@ -91,8 +91,7 @@ in
|
||||
matchConfig.Name = "wg0";
|
||||
networkConfig = {
|
||||
Address = "10.8.0.1/24";
|
||||
IPForward = true;
|
||||
IPMasquerade = "ipv4";
|
||||
IPv4Forwarding = true;
|
||||
};
|
||||
};
|
||||
|
||||
@ -106,7 +105,7 @@ in
|
||||
|
||||
listen-address = [
|
||||
"127.0.0.1"
|
||||
"192.168.13.2"
|
||||
"192.168.129.2"
|
||||
"10.8.0.1"
|
||||
];
|
||||
bind-interfaces = true;
|
||||
@ -118,7 +117,7 @@ in
|
||||
conf-file = "${pkgs.dnsmasq}/share/dnsmasq/trust-anchors.conf";
|
||||
dnssec = false;
|
||||
|
||||
address = "/coolneng.duckdns.org/192.168.13.2";
|
||||
address = "/coolneng.duckdns.org/192.168.129.2";
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user