summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorRobert "ar" Gerus <ar@bash.org.pl>2013-03-11 21:49:16 +0100
committerRobert "ar" Gerus <ar@bash.org.pl>2013-03-11 21:49:16 +0100
commit0342e5de6bac13a55c6d8d955047c767a85b68fb (patch)
tree5895e673f26fb11b6ff6884914696d4cfb245539 /rules
parentf1e0978bf7b4bde302252881b3c95dce4640cf9b (diff)
downloadold-firewall-0342e5de6bac13a55c6d8d955047c767a85b68fb.tar.gz
old-firewall-0342e5de6bac13a55c6d8d955047c767a85b68fb.tar.bz2
old-firewall-0342e5de6bac13a55c6d8d955047c767a85b68fb.tar.xz
old-firewall-0342e5de6bac13a55c6d8d955047c767a85b68fb.zip
Now it should work
Diffstat (limited to 'rules')
-rw-r--r--rules/10-ar-amanojaku3
1 files changed, 1 insertions, 2 deletions
diff --git a/rules/10-ar-amanojaku b/rules/10-ar-amanojaku
index 032e707..633443e 100644
--- a/rules/10-ar-amanojaku
+++ b/rules/10-ar-amanojaku
@@ -1,7 +1,6 @@
rules() {
# external port redirects
- iptables -t filter $flag FORWARD -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 22 -j ACCEPT
- iptables -t filter $flag OUTPUT -o ${IF_LAN} -d ${HOST_KASHA_WAN} -p tcp --dport 22 -j ACCEPT
+ iptables -t filter $flag FORWARD -i ${IF_WAN} -d ${HOST_AMANOJAKU} -p tcp --dport 22 -j ACCEPT
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 22 -j DNAT --to-destination ${HOST_AMANOJAKU}
iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 80 -j DNAT --to-destination ${HOST_AMANOJAKU}