summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2013-07-08 23:51:01 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2013-07-08 23:51:01 +0200
commitc90ee51978da314b8181fc8de5c09f2f87b6cb2d (patch)
tree0de42c0ce4f5d911d752e52f07d5ba3e4cfe7813
parent4d48646fb76bdce43bafce575075b3472c41e1af (diff)
downloadold-firewall-c90ee51978da314b8181fc8de5c09f2f87b6cb2d.tar.gz
old-firewall-c90ee51978da314b8181fc8de5c09f2f87b6cb2d.tar.bz2
old-firewall-c90ee51978da314b8181fc8de5c09f2f87b6cb2d.zip
:666 → 10.24.0.29:22
-rw-r--r--rules/11-pht-forwards6
-rw-r--r--rules/11-q3k-forwards10
2 files changed, 6 insertions, 10 deletions
diff --git a/rules/11-pht-forwards b/rules/11-pht-forwards
new file mode 100644
index 0000000..6a28d80
--- /dev/null
+++ b/rules/11-pht-forwards
@@ -0,0 +1,6 @@
+#!/bin/bash
+rules() {
+ if ${HAVE_WAN2}; then
+ iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN2} -p tcp --dport 666 -j DNAT --to-destination 10.24.0.29:22
+ fi
+}
diff --git a/rules/11-q3k-forwards b/rules/11-q3k-forwards
deleted file mode 100644
index a860041..0000000
--- a/rules/11-q3k-forwards
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-rules() {
- # xpsp3 rdp
- # 16283 -> 10.24.17.1:3389
- iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 16283 -j DNAT --to-destination 10.24.17.1:3389
- iptables -t filter $flag FORWARD -i ${IF_WAN} -d 10.24.17.1 -p tcp --dport 3389 -j ACCEPT
- iptables -t filter $flag FORWARD -i ${IF_WAN} -d 10.24.16.1 -p tcp --dport 22 -j ACCEPT
- iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 16284 -j DNAT --to-destination 10.24.16.1:22
-
-}