summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2013-07-09 23:36:34 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2013-07-09 23:36:34 +0200
commit22a6f49781bfe45f2be9f001da7a2f25b4ae81eb (patch)
treec6a100ba425a1f41abe0cfc3a720961e3dafd355
parenta94ab7d8d0bb9a42270dc579dc90da3a22bbc1c7 (diff)
downloadold-firewall-22a6f49781bfe45f2be9f001da7a2f25b4ae81eb.tar.gz
old-firewall-22a6f49781bfe45f2be9f001da7a2f25b4ae81eb.tar.bz2
old-firewall-22a6f49781bfe45f2be9f001da7a2f25b4ae81eb.tar.xz
old-firewall-22a6f49781bfe45f2be9f001da7a2f25b4ae81eb.zip
pht - zmiana publicznego ip wychodzÄ…cego do shell.k4be.pl na _WAN2.
-rw-r--r--rules/11-pht-forwards1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/11-pht-forwards b/rules/11-pht-forwards
index 090a1c8..5d3b27a 100644
--- a/rules/11-pht-forwards
+++ b/rules/11-pht-forwards
@@ -2,6 +2,7 @@
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 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
}