connecting to hackerspace!

master
Robert Gerus 2014-03-05 17:42:58 +01:00
parent 78e742011a
commit c329730b23
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@
rules() {
iptables --table filter $flag FORWARD -i ${IF_WAN} -o ${IF_LAN} -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables --table nat $flag POSTROUTING -s ${NET_LAN} -o ${IF_WAN} -j SNAT --to-source ${HOST_KASHA_WAN}
# will fix the --to-source line, i promise
iptables --table nat $flag POSTROUTING -s ${NET_LAN} -d 10.8.0.0/16 -j SNAT --to-source 10.9.1.45
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