fix connections to modem

master
Robert "ar" Gerus 2013-03-23 12:00:19 +01:00
parent 4095ac05a1
commit 3491cd19c2
2 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@ IF_LAN="eth1"
# networks:
NET_LAN="10.24.0.0/16"
NET_WAN="192.168.0.0/24"
NET_AR="10.24.20.0/24"
NET_Q3K="10.24.16.0/24"

View File

@ -6,4 +6,6 @@ rules() {
if ${HAVE_WAN2}; then
iptables --table nat $flag POSTROUTING -s 10.24.20.10 -o ${IF_WAN} -j SNAT --to-source ${HOST_KASHA_WAN2}
fi
# we want to be able to access 192.168.0.1
iptables --table nat $flag POSTROUTING -s ${NET_LAN} -d ${NET_WAN} -j SNAT --to-source ${HOST_KASHA_WAN}
}