pastila/oven: add mosh

This commit is contained in:
root 2024-06-02 21:46:55 +02:00
parent fdbb2a3630
commit c9b2836856
3 changed files with 16 additions and 1 deletions

View file

@ -52,7 +52,14 @@ in
toString vars.ovenNat.pastila.address + ":" + toString port.num;
proto = port.proto;
sourcePort = port.num;
}) vars.ovenNat.forwardPorts;
}) vars.ovenNat.forwardPorts
++
# mosh
[{
destination = toString vars.ovenNat.pastila.address + ":60000-61000";
proto = "udp";
sourcePort = "60000:61000";
}];
};
firewall = {
@ -62,6 +69,10 @@ in
allowedUDPPorts =
map (port: port.num)
(builtins.filter (port: port.proto == "udp") vars.ovenNat.forwardPorts);
# mosh
allowedUDPPortRanges = [
{ from = 60000; to = 61000; }
];
};
};

View file

@ -56,6 +56,8 @@ in
map (port: port.num)
(builtins.filter (port: port.proto == "udp") vars.ovenNat.forwardPorts);
programs.mosh.enable = true;
environment.systemPackages = with pkgs; [
irssi
weechat

View file

@ -23,6 +23,8 @@
# transmission
{ num = 51413; proto = "tcp"; }
{ num = 51413; proto = "udp"; }
# mosh
# see ad-hoc config in oven/configuration.nix
];
};
onlineNetDNS = [