summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert "ar" Gerus <ar@bash.org.pl>2013-04-11 18:53:28 +0200
committerRobert "ar" Gerus <ar@bash.org.pl>2013-04-11 18:53:28 +0200
commit9ff1b8120e7166f3cb9570032e43f0f5c9ac09b2 (patch)
treef7edc71077455d8c7216ed8e7ce09eea6cf6e62e
parentdde74465ae0b455b7fca1f0712240741b60f79d7 (diff)
downloadold-firewall-9ff1b8120e7166f3cb9570032e43f0f5c9ac09b2.tar.gz
old-firewall-9ff1b8120e7166f3cb9570032e43f0f5c9ac09b2.tar.bz2
old-firewall-9ff1b8120e7166f3cb9570032e43f0f5c9ac09b2.tar.xz
old-firewall-9ff1b8120e7166f3cb9570032e43f0f5c9ac09b2.zip
ssh for q3k
-rw-r--r--rules/11-q3k-forwards2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/11-q3k-forwards b/rules/11-q3k-forwards
index 22f7f74..a860041 100644
--- a/rules/11-q3k-forwards
+++ b/rules/11-q3k-forwards
@@ -4,5 +4,7 @@ rules() {
# 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
}