This commit is contained in:
iFargle 2023-12-03 11:41:47 +09:00
parent 623506cb62
commit 3317d23abe

View file

@ -20,8 +20,10 @@
5347 # Jitsi 5347 # Jitsi
5280 # Jitsi 5280 # Jitsi
]; ];
networking.firewall.extraCommands = ''${pkgs.iptables}/bin/iptables -t nat -A PREROUTING -p udp --dport 10000 -j DNAT --to-destination 10.100.0.2:10000''; networking.firewall.extraCommands = ''
networking.firewall.extraStopCommands = ''${pkgs.iptables}/bin/iptables -t nat -D PREROUTING -p udp --dport 10000 -j DNAT --to-destination 10.100.0.2:10000''; ${pkgs.iptables}/bin/iptables -t nat -A PREROUTING -p udp --dport 10000 -j DNAT --to-destination 10.100.0.2:10000
${pkgs.iptables}/bin/iptables -A FORWARD -p udp -d 10.100.0.2 --dport 10000 -j ACCEPT
'';
services.xinetd = { services.xinetd = {
enable = true; enable = true;