diff options
author | Robert Gerus <arachnist@i.am-a.cat> | 2013-07-27 21:36:24 +0200 |
---|---|---|
committer | Robert Gerus <arachnist@i.am-a.cat> | 2013-07-27 21:36:24 +0200 |
commit | 58ef71e9967f51108574af55fe172c9261113583 (patch) | |
tree | 4fac2f8edfd7519f787cc224e42fa19b1cfdf44d | |
parent | 22a6f49781bfe45f2be9f001da7a2f25b4ae81eb (diff) | |
download | old-firewall-58ef71e9967f51108574af55fe172c9261113583.tar.gz old-firewall-58ef71e9967f51108574af55fe172c9261113583.tar.bz2 old-firewall-58ef71e9967f51108574af55fe172c9261113583.tar.xz old-firewall-58ef71e9967f51108574af55fe172c9261113583.zip |
ip change
-rw-r--r-- | rules/11-pht-forwards | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/11-pht-forwards b/rules/11-pht-forwards index 5d3b27a..ee59714 100644 --- a/rules/11-pht-forwards +++ b/rules/11-pht-forwards @@ -1,8 +1,8 @@ #!/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 + iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN2} -p tcp --dport 666 -j DNAT --to-destination 10.24.40.1:22 iptables -t nat $flag POSTROUTING -o ${IF_WAN} -d 178.217.184.63 -j SNAT --to-source ${HOST_KASHA_WAN2} fi - iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 666 -j DNAT --to-destination 10.24.0.29:22 + iptables -t nat $flag PREROUTING -i ${IF_WAN} -d ${HOST_KASHA_WAN} -p tcp --dport 666 -j DNAT --to-destination 10.24.40.1:22 } |