summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert "ar" Gerus <ar@bash.org.pl>2013-03-23 07:34:19 +0100
committerRobert "ar" Gerus <ar@bash.org.pl>2013-03-23 07:34:19 +0100
commitea88cd4a1aededb29b7cde0e8c939eebf3cd655a (patch)
tree0e41245674913d7354bd2b0885c08d1da75cc634
parent50376f3bbfb199d7f63684e44c45b71e257fd2d9 (diff)
downloadold-firewall-ea88cd4a1aededb29b7cde0e8c939eebf3cd655a.tar.gz
old-firewall-ea88cd4a1aededb29b7cde0e8c939eebf3cd655a.tar.bz2
old-firewall-ea88cd4a1aededb29b7cde0e8c939eebf3cd655a.zip
Try using the other pub-ip
-rw-r--r--rules/01-output-snat3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/01-output-snat b/rules/01-output-snat
index f91ff0c..1a6e457 100644
--- a/rules/01-output-snat
+++ b/rules/01-output-snat
@@ -3,4 +3,7 @@ rules() {
iptables --table filter $flag FORWARD -i ${IF_WAN} -o ${IF_LAN} -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables --table filter $flag FORWARD -i ${IF_LAN} -o ${IF_WAN} -j ACCEPT
iptables --table nat $flag POSTROUTING -s ${NET_LAN} -o ${IF_WAN} -j SNAT --to-source ${HOST_KASHA_WAN}
+ if ${HAVE_WAN2}; then
+ iptables --table nat $flag POSTROUTING -s 10.24.0.10 -o ${IF_WAN} -j SNAT --to-source ${HOST_KASHA_WAN2}
+ fi
}