summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2014-08-30 11:44:50 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2014-08-30 11:44:50 +0200
commit888c2f30909bfd3d9c519a894e2a9cb6dce21750 (patch)
tree6c57a7d038852580f9dda055a03c5924d82d0643
parent614f4e443396f2898b8b3e02a46b643c0a270d27 (diff)
downloadold-firewall-888c2f30909bfd3d9c519a894e2a9cb6dce21750.tar.gz
old-firewall-888c2f30909bfd3d9c519a894e2a9cb6dce21750.tar.bz2
old-firewall-888c2f30909bfd3d9c519a894e2a9cb6dce21750.tar.xz
old-firewall-888c2f30909bfd3d9c519a894e2a9cb6dce21750.zip
Forward udp for minecraft query protocol
-rw-r--r--rules/10-ar5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules/10-ar b/rules/10-ar
index 85afbf8..a12ebb4 100644
--- a/rules/10-ar
+++ b/rules/10-ar
@@ -1,8 +1,13 @@
#!/bin/bash
rules() {
iptables --table nat $append PREROUTING -p tcp --dport 2220 -j DNAT --to-destination 10.24.20.20:22
+ # minecraft
iptables --table nat $flag PREROUTING -p tcp --dport 25566 -j DNAT --to-destination 10.24.20.100:25566
iptables --table nat $flag PREROUTING -p tcp --dport 25567 -j DNAT --to-destination 10.24.20.100:25567
+ # minecraft queries
+ iptables --table nat $flag PREROUTING -p udp --dport 25566 -j DNAT --to-destination 10.24.20.100:25566
+ iptables --table nat $flag PREROUTING -p udp --dport 25567 -j DNAT --to-destination 10.24.20.100:25567
+ # amanojaku ssh
iptables --table nat $flag PREROUTING -p tcp --dport 10022 -j DNAT --to-destination 10.24.20.100:22
iptables --table nat $flag PREROUTING -p tcp --dport 51413 -j DNAT --to-destination 10.24.20.100:51413
}