Update NAT64 to align with network restructure

This commit is contained in:
Vili Sinervä 2025-01-11 04:03:32 +02:00
parent 04bdd68e34
commit 5e70208aef
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -1,14 +1,5 @@
{ ... }:
{
# Give NAT64 internet without DNS64
environment.etc."resolv.conf".text = ''
search vsinerva.fi
nameserver 2606:4700:4700::1111
nameserver 2606:4700:4700::1001
nameserver 1.1.1.1
nameserver 1.0.0.1
'';
networking = {
jool = {
enable = true;
@ -20,7 +11,7 @@
{
# ExoPlaSim WireGuard
"protocol" = "UDP";
"ipv4 address" = "192.168.1.1#51821";
"ipv4 address" = "192.168.1.2#51821";
"ipv6 address" = "fd08:d473:bcca:1:210:3292:4922:b9aa#51821";
}
];
@ -29,24 +20,24 @@
# Ports for static BIB entries
{
protocol = "UDP";
prefix = "192.168.1.1/32";
prefix = "192.168.1.2/32";
"port range" = "51821";
}
# Port ranges for dynamic translation
{
protocol = "TCP";
prefix = "192.168.1.1/32";
prefix = "192.168.1.2/32";
"port range" = "30001-50000";
}
{
protocol = "UDP";
prefix = "192.168.1.1/32";
prefix = "192.168.1.2/32";
"port range" = "30001-50000";
}
{
protocol = "ICMP";
prefix = "192.168.1.1/32";
prefix = "192.168.1.2/32";
"port range" = "30001-50000";
}
];