fix connections to modem
parent
4095ac05a1
commit
3491cd19c2
|
@ -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"
|
||||
|
||||
|
|
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue