Compare commits
No commits in common. "d98f4f21bee7d79f41e5dcd228f761a0f217cfbb" and "3e56f5ffe3d0f0b89c00a0d9157f7f11665e9911" have entirely different histories.
d98f4f21be
...
3e56f5ffe3
2 changed files with 1 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
services.minecraft-servers = {
|
services.minecraft-servers = {
|
||||||
enable = true;
|
enable = false;
|
||||||
eula = true;
|
eula = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
servers.owo = {
|
servers.owo = {
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
x.protocols
|
x.protocols
|
||||||
|> map (protocol: ''
|
|> map (protocol: ''
|
||||||
iptables -t nat -A PREROUTING -p ${protocol} -d ${externalIp} --dport ${toString x.port} -j DNAT --to-destination ${x.destinationIp}
|
iptables -t nat -A PREROUTING -p ${protocol} -d ${externalIp} --dport ${toString x.port} -j DNAT --to-destination ${x.destinationIp}
|
||||||
iptables -t nat -A POSTROUTING -p ${protocol} -d ${x.destinationIp} --dport ${toString x.port} -j SNAT --to-source 172.245.52.19
|
|
||||||
''))
|
''))
|
||||||
|> b.concatLists
|
|> b.concatLists
|
||||||
|> b.concatStringsSep "\n";
|
|> b.concatStringsSep "\n";
|
||||||
|
@ -49,7 +48,6 @@
|
||||||
x.protocols
|
x.protocols
|
||||||
|> map (protocol: ''
|
|> map (protocol: ''
|
||||||
iptables -t nat -D PREROUTING -p ${protocol} -d ${externalIp} --dport ${toString x.port} -j DNAT --to-destination ${x.destinationIp} || true
|
iptables -t nat -D PREROUTING -p ${protocol} -d ${externalIp} --dport ${toString x.port} -j DNAT --to-destination ${x.destinationIp} || true
|
||||||
iptables -t nat -D POSTROUTING -p ${protocol} -d ${x.destinationIp} --dport ${toString x.port} -j SNAT --to-source 172.245.52.19
|
|
||||||
''))
|
''))
|
||||||
|> b.concatLists
|
|> b.concatLists
|
||||||
|> b.concatStringsSep "\n";
|
|> b.concatStringsSep "\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue