configure jool a bit more
This commit is contained in:
parent
712f0f4a17
commit
49f11bea9d
3 changed files with 10 additions and 37 deletions
|
@ -8,7 +8,9 @@ CONFIG=$3
|
|||
|
||||
set -x
|
||||
exec nixos-rebuild $ACTION \
|
||||
--use-substitutes \
|
||||
--no-build-nix \
|
||||
--use-remote-sudo \
|
||||
--build-host $HOST \
|
||||
--target-host $HOST \
|
||||
--flake ".#${CONFIG}"
|
||||
|
|
|
@ -6,56 +6,26 @@
|
|||
{
|
||||
imports = [ ];
|
||||
|
||||
networking.nftables.enable = true;
|
||||
|
||||
# configure jool
|
||||
networking.jool = {
|
||||
# siit = {}; TODO
|
||||
nat64 = {
|
||||
enable = true;
|
||||
nat64.default = {
|
||||
pool4 = [
|
||||
{
|
||||
protocol = "TCP";
|
||||
prefix = "94.45.248.0/25";
|
||||
prefix = "94.45.248.0/24";
|
||||
"port range" = "40001-65535";
|
||||
}
|
||||
{
|
||||
protocol = "UDP";
|
||||
prefix = "94.45.248.128/26";
|
||||
prefix = "94.45.248.0/24";
|
||||
"port range" = "40001-65535";
|
||||
}
|
||||
{
|
||||
protocol = "ICMP";
|
||||
prefix = "94.45.248.192/27";
|
||||
"port range" = "40001-65535";
|
||||
}
|
||||
|
||||
{
|
||||
protocol = "TCP";
|
||||
prefix = "94.45.248.0/25";
|
||||
"port range" = "40001-65535";
|
||||
}
|
||||
{
|
||||
protocol = "UDP";
|
||||
prefix = "94.45.248.128/26";
|
||||
"port range" = "40001-65535";
|
||||
}
|
||||
{
|
||||
protocol = "ICMP";
|
||||
prefix = "94.45.248.192/27";
|
||||
"port range" = "40001-65535";
|
||||
}
|
||||
|
||||
{
|
||||
protocol = "TCP";
|
||||
prefix = "94.45.248.0/25";
|
||||
"port range" = "40001-65535";
|
||||
}
|
||||
{
|
||||
protocol = "UDP";
|
||||
prefix = "94.45.248.128/26";
|
||||
"port range" = "40001-65535";
|
||||
}
|
||||
{
|
||||
protocol = "ICMP";
|
||||
prefix = "94.45.248.192/27";
|
||||
prefix = "94.45.248.0/24";
|
||||
"port range" = "40001-65535";
|
||||
}
|
||||
];
|
||||
|
|
|
@ -49,6 +49,7 @@ in
|
|||
"94.45.240.1/21" # wired
|
||||
"94.45.254.1/24" # public services subnet
|
||||
];
|
||||
# TODO: Add jool routes
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue