swann: give PS5 a static IP
This commit is contained in:
parent
5e2a688410
commit
fb16bea95c
1 changed files with 24 additions and 8 deletions
|
@ -74,6 +74,7 @@ in {
|
||||||
en-general = {
|
en-general = {
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
{ address = "192.168.1.1"; prefixLength = 23; }
|
{ address = "192.168.1.1"; prefixLength = 23; }
|
||||||
|
{ address = "92.118.30.17"; prefixLength = 28; }
|
||||||
];
|
];
|
||||||
ipv6.addresses = [
|
ipv6.addresses = [
|
||||||
{ address = "2a09:a443::1"; prefixLength = 64; }
|
{ address = "2a09:a443::1"; prefixLength = 64; }
|
||||||
|
@ -214,16 +215,26 @@ in {
|
||||||
interfaces = ["en-general" "vl-eduroam"];
|
interfaces = ["en-general" "vl-eduroam"];
|
||||||
authoritative = true;
|
authoritative = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
subnet 192.168.1.0 netmask 255.255.255.0 {
|
shared-network int {
|
||||||
option subnet-mask 255.255.255.0;
|
|
||||||
option routers 192.168.1.1;
|
|
||||||
option domain-name-servers 192.168.1.1;
|
|
||||||
option domain-name "house.as205479.net";
|
|
||||||
default-lease-time 600;
|
default-lease-time 600;
|
||||||
max-lease-time 3600;
|
max-lease-time 3600;
|
||||||
option interface-mtu 1420; # Wireguard
|
option interface-mtu 1420; # Wireguard
|
||||||
|
|
||||||
range 192.168.1.100 192.168.1.200;
|
subnet 192.168.1.0 netmask 255.255.255.0 {
|
||||||
|
option subnet-mask 255.255.255.0;
|
||||||
|
option routers 192.168.1.1;
|
||||||
|
option domain-name-servers 192.168.1.1;
|
||||||
|
option domain-name "house.as205479.net";
|
||||||
|
|
||||||
|
range 192.168.1.100 192.168.1.200;
|
||||||
|
}
|
||||||
|
|
||||||
|
subnet 92.118.30.16 netmask 255.255.255.240 {
|
||||||
|
option subnet-mask 255.255.255.240;
|
||||||
|
option routers 92.118.30.17;
|
||||||
|
option domain-name-servers 92.118.30.17;
|
||||||
|
option domain-name "house-ext.as205479.net";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
subnet 192.168.10.0 netmask 255.255.255.0 {
|
subnet 192.168.10.0 netmask 255.255.255.0 {
|
||||||
|
@ -259,6 +270,11 @@ in {
|
||||||
ethernetAddress = "9c:93:4e:ad:1f:7b";
|
ethernetAddress = "9c:93:4e:ad:1f:7b";
|
||||||
ipAddress = "192.168.1.51";
|
ipAddress = "192.168.1.51";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
hostName = "ps5";
|
||||||
|
ethernetAddress = "bc:33:29:26:01:5c";
|
||||||
|
ipAddress = "92.118.30.18";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
networking.wireguard = let
|
networking.wireguard = let
|
||||||
|
@ -412,9 +428,9 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = ''
|
config = ''
|
||||||
.:53 {
|
.:53 {
|
||||||
bind 192.168.1.1 192.168.10.1 127.0.0.53 2a09:a443::1 2a09:a443:1::1 2a09:a443:2::1 2a09:a443:3::1
|
bind 192.168.1.1 92.118.30.17 192.168.10.1 127.0.0.53 2a09:a443::1 2a09:a443:1::1 2a09:a443:2::1 2a09:a443:3::1
|
||||||
acl {
|
acl {
|
||||||
allow net 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 127.0.0.0/8 100.64.0.0/10 2a09:a443::/32
|
allow net 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 127.0.0.0/8 100.64.0.0/10 2a09:a443::/32 92.118.30.0/24
|
||||||
block
|
block
|
||||||
}
|
}
|
||||||
hosts /dev/null {
|
hosts /dev/null {
|
||||||
|
|
Loading…
Reference in a new issue