1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
54df2256b9 Allow DNS over TCP 2022-02-12 15:25:56 +01:00
a5f2a58ff0 Enable Kea for Heimnetz 2022-02-12 15:22:57 +01:00

View File

@ -99,7 +99,12 @@
enable = true; enable = true;
settings = { settings = {
interfaces-config = { interfaces-config = {
interfaces = [ "enp1s0.204" ]; interfaces = [ "enp1s0.201" "enp1s0.204" ];
};
lease-database = {
name = "/var/lib/kea/dhcp4.leases";
persist = true;
type = "memfile";
}; };
option-def = [ option-def = [
{ {
@ -141,7 +146,33 @@
} }
]; ];
subnet4 = [ subnet4 = [
# Heimnetz
{ {
id = 201;
subnet = "10.152.4.0/24";
pools = [
{
pool = "10.152.4.100 - 10.152.4.240";
}
];
option-data = [
{
name = "routers";
data = "10.152.4.1";
}
{
name = "domain-name-servers";
data = "10.152.0.1";
}
{
name = "domain-name";
data = "net.clerie.de";
}
];
}
# VoIP
{
id = 204;
subnet = "10.152.33.0/24"; subnet = "10.152.33.0/24";
pools = [ pools = [
{ {
@ -224,6 +255,7 @@
}; };
networking.firewall.allowedUDPPorts = [ 53 60001 ]; networking.firewall.allowedUDPPorts = [ 53 60001 ];
networking.firewall.allowedTCPPorts = [ 53 ];
networking.firewall.extraCommands = '' networking.firewall.extraCommands = ''
iptables -A FORWARD -i enp1s0.202 -o ppp-ntvdsl -j ACCEPT iptables -A FORWARD -i enp1s0.202 -o ppp-ntvdsl -j ACCEPT