ma 1system: ip4 -> ipv4.addresses
This commit is contained in:
parent
70c41d322c
commit
7fa3fc7b1a
@ -30,7 +30,7 @@ in {
|
||||
allowedTCPPorts = [ ];
|
||||
allowedUDPPorts = [ 655 ];
|
||||
};
|
||||
interfaces.enp0s3.ip4 = [{
|
||||
interfaces.enp0s3.ipv4.addresses = [{
|
||||
address = external-ip;
|
||||
inherit prefixLength;
|
||||
}];
|
||||
|
@ -145,13 +145,13 @@ in {
|
||||
networking.nameservers = [ "8.8.8.8" ];
|
||||
# SPF
|
||||
networking.defaultGateway = "151.217.176.1";
|
||||
networking.interfaces.enp6s0f0.ip4 = [{
|
||||
networking.interfaces.enp6s0f0.ipv4.addresses = [{
|
||||
address = "151.217.178.63";
|
||||
prefixLength = 22;
|
||||
}];
|
||||
|
||||
# Gigabit
|
||||
networking.interfaces.enp8s0f1.ip4 = [{
|
||||
networking.interfaces.enp8s0f1.ipv4.addresses = [{
|
||||
address = "192.168.126.1";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
|
@ -46,7 +46,7 @@ in {
|
||||
dst = "10.8.10.6";
|
||||
};
|
||||
networking = {
|
||||
interfaces.enp2s1.ip4 = [
|
||||
interfaces.enp2s1.ipv4.addresses = [
|
||||
{ address = ip; prefixLength = 24; }
|
||||
# { address = alt-ip; prefixLength = 24; }
|
||||
];
|
||||
|
@ -150,7 +150,7 @@ in {
|
||||
# rt2870 with nonfree creates wlp2s0 from wlp0s20u2
|
||||
# not explicitly setting the interface results in wpa_supplicant to crash
|
||||
networking.wireless.interfaces = [ "wlp2s0" ];
|
||||
networking.interfaces.virbr1.ip4 = [{
|
||||
networking.interfaces.virbr1.ipv4.addresses = [{
|
||||
address = "10.8.8.11";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
|
@ -42,7 +42,7 @@ in {
|
||||
allowedTCPPorts = [ 53 80 443 ];
|
||||
allowedUDPPorts = [ 655 53 ];
|
||||
};
|
||||
interfaces.enp2s1.ip4 = [{
|
||||
interfaces.enp2s1.ipv4.addresses = [{
|
||||
address = external-ip;
|
||||
prefixLength = 24;
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user