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
|
set -x
|
||||||
exec nixos-rebuild $ACTION \
|
exec nixos-rebuild $ACTION \
|
||||||
|
--use-substitutes \
|
||||||
--no-build-nix \
|
--no-build-nix \
|
||||||
--use-remote-sudo \
|
--use-remote-sudo \
|
||||||
|
--build-host $HOST \
|
||||||
--target-host $HOST \
|
--target-host $HOST \
|
||||||
--flake ".#${CONFIG}"
|
--flake ".#${CONFIG}"
|
||||||
|
|
|
@ -6,56 +6,26 @@
|
||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
|
networking.nftables.enable = true;
|
||||||
|
|
||||||
# configure jool
|
# configure jool
|
||||||
networking.jool = {
|
networking.jool = {
|
||||||
# siit = {}; TODO
|
enable = true;
|
||||||
nat64 = {
|
nat64.default = {
|
||||||
pool4 = [
|
pool4 = [
|
||||||
{
|
{
|
||||||
protocol = "TCP";
|
protocol = "TCP";
|
||||||
prefix = "94.45.248.0/25";
|
prefix = "94.45.248.0/24";
|
||||||
"port range" = "40001-65535";
|
"port range" = "40001-65535";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
protocol = "UDP";
|
protocol = "UDP";
|
||||||
prefix = "94.45.248.128/26";
|
prefix = "94.45.248.0/24";
|
||||||
"port range" = "40001-65535";
|
"port range" = "40001-65535";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
protocol = "ICMP";
|
protocol = "ICMP";
|
||||||
prefix = "94.45.248.192/27";
|
prefix = "94.45.248.0/24";
|
||||||
"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";
|
|
||||||
"port range" = "40001-65535";
|
"port range" = "40001-65535";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -49,6 +49,7 @@ in
|
||||||
"94.45.240.1/21" # wired
|
"94.45.240.1/21" # wired
|
||||||
"94.45.254.1/24" # public services subnet
|
"94.45.254.1/24" # public services subnet
|
||||||
];
|
];
|
||||||
|
# TODO: Add jool routes
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue