diff --git a/nixos/hosts/osaka-vultr-01/xinetd.nix b/nixos/hosts/osaka-vultr-01/xinetd.nix index 9f951d6e..9c8fadf9 100644 --- a/nixos/hosts/osaka-vultr-01/xinetd.nix +++ b/nixos/hosts/osaka-vultr-01/xinetd.nix @@ -21,6 +21,13 @@ 5280 # Jitsi ]; + networking.firewall.extraCommands = '' + iptables -t nat -A PREROUTING -p udp --dport 10000 -j DNAT --to-destination [Server_A_IP]:10000 + ''; + networking.firewall.extraStopCommands = '' + iptables -t nat -D PREROUTING -p udp --dport 10000 -j DNAT --to-destination [Server_A_IP]:10000 + ''; + services.xinetd = { enable = true; services = [