pastila/oven: add mosh
This commit is contained in:
parent
fdbb2a3630
commit
c9b2836856
3 changed files with 16 additions and 1 deletions
|
@ -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; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
2
vars.nix
2
vars.nix
|
@ -23,6 +23,8 @@
|
|||
# transmission
|
||||
{ num = 51413; proto = "tcp"; }
|
||||
{ num = 51413; proto = "udp"; }
|
||||
# mosh
|
||||
# see ad-hoc config in oven/configuration.nix
|
||||
];
|
||||
};
|
||||
onlineNetDNS = [
|
||||
|
|
Loading…
Reference in a new issue