Try using the other pub-ip

master
Robert "ar" Gerus 2013-03-23 07:34:19 +01:00
parent 50376f3bbf
commit ea88cd4a1a
1 changed files with 3 additions and 0 deletions

View File

@ -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
}