summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergiusz 'q3k' Bazański <q3k@q3k.org>2013-04-02 11:40:56 +0200
committerSergiusz 'q3k' Bazański <q3k@q3k.org>2013-04-02 11:40:56 +0200
commite4f106b15afb9e77d81f283f2d9baf6c9100762b (patch)
tree73ca4afba3f407e22c93afaa42011147b83f72a9
parent669472f4b3f37cd866b52c6c616543991cdd9934 (diff)
downloadold-firewall-e4f106b15afb9e77d81f283f2d9baf6c9100762b.tar.gz
old-firewall-e4f106b15afb9e77d81f283f2d9baf6c9100762b.tar.bz2
old-firewall-e4f106b15afb9e77d81f283f2d9baf6c9100762b.tar.xz
old-firewall-e4f106b15afb9e77d81f283f2d9baf6c9100762b.zip
Forward some of my crap.
-rw-r--r--rules/11-q3k-forwards8
1 files changed, 8 insertions, 0 deletions
diff --git a/rules/11-q3k-forwards b/rules/11-q3k-forwards
new file mode 100644
index 0000000..a1e8ee7
--- /dev/null
+++ b/rules/11-q3k-forwards
@@ -0,0 +1,8 @@
+#!/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 --to-port 3389
+ iptanles -t filter $flag FORWARD -i ${IF_WAN} -d 10.24.17.1 -p tcp --dport 3389 -j ACCEPT
+
+}