Accept connections from apex to fox slurmd

Reviewed-by: Aleix Roca Nonell <aleix.rocanonell@bsc.es>
This commit is contained in:
Rodrigo Arias 2025-08-29 14:55:53 +02:00
parent 85f38e17a2
commit b1bad25008

View File

@ -36,4 +36,11 @@
networking.hosts = { networking.hosts = {
"10.100.0.30" = [ "apex" ]; "10.100.0.30" = [ "apex" ];
}; };
networking.firewall = {
extraCommands = ''
# Accept slurm connections to slurmd from apex (via wireguard)
iptables -A nixos-fw -p tcp -i wg0 -s 10.100.0.30/32 -d 10.100.0.1/32 --dport 6818 -j nixos-fw-accept
'';
};
} }