This commit is contained in:
iFargle 2023-12-03 11:20:09 +09:00
parent cc84c01fb0
commit 9ceffebf0a

View file

@ -21,11 +21,12 @@
5280 # Jitsi 5280 # Jitsi
]; ];
networking.ipv4.forwarding = true;
networking.firewall.extraCommands = '' networking.firewall.extraCommands = ''
iptables -t nat -A PREROUTING -p udp --dport 10000 -j DNAT --to-destination [Server_A_IP]:10000 iptables -t nat -A PREROUTING -p udp --dport 10000 -j DNAT --to-destination 10.100.0.2:10000
''; '';
networking.firewall.extraStopCommands = '' networking.firewall.extraStopCommands = ''
iptables -t nat -D PREROUTING -p udp --dport 10000 -j DNAT --to-destination [Server_A_IP]:10000 iptables -t nat -D PREROUTING -p udp --dport 10000 -j DNAT --to-destination 10.100.0.2:10000
''; '';
services.xinetd = { services.xinetd = {