test
This commit is contained in:
parent
cc84c01fb0
commit
9ceffebf0a
1 changed files with 4 additions and 3 deletions
|
@ -20,12 +20,13 @@
|
||||||
5347 # Jitsi
|
5347 # Jitsi
|
||||||
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 = {
|
||||||
|
|
Loading…
Reference in a new issue