1
0
vcp-bula-nixfiles/hosts/router/210-net-internation.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

2022-07-12 23:36:05 +02:00
{ config, pkgs, ...}:
{
networking.vlans."net-internation" = {
id = 210;
interface = "ens18";
};
networking.interfaces.net-internation.ipv6.addresses = [
{ address = "fe80::1"; prefixLength = 64; }
{ address = "fd00:10:42:210::1"; prefixLength = 64; }
];
networking.interfaces.net-internation.ipv4.addresses = [
{ address = "10.42.210.1"; prefixLength = 24; }
];
services.radvd.config = ''
interface net-internation {
AdvSendAdvert on;
prefix fd00:10:42:210::/64 {};
RDNSS 2a01:4f8:1c0c:8221::8 {};
DNSSL bula22.de {};
};
'';
services.kea.dhcp4 = {
settings = {
interfaces-config = {
interfaces = [ "net-internation" ];
};
subnet4 = [
{
id = 210;
subnet = "10.42.210.1/24";
pools = [
{
pool = "10.42.210.100 - 10.42.210.240";
}
];
option-data = [
{
name = "routers";
data = "10.42.210.1";
}
];
}
];
};
};
clerie.forward-filter.interfaces.net-internation.rules = [
{ incomingInterface = "net-ikt"; }
];
2022-07-15 01:16:51 +02:00
clerie.uplink-selector.interfaces.net-internation.uplink = "uplink-b";
2022-07-12 23:36:05 +02:00
}