diff options
author | Steven Barth <steven@midlink.org> | 2008-04-28 08:39:44 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-28 08:39:44 +0000 |
commit | 088807faa90ba4f052068ecba06d5f1791d88ab2 (patch) | |
tree | a41e15273a4cbc42224a5afedb9aec7370637ab2 | |
parent | de13f9f262da3da7bee2c48dad8be23d09528a9f (diff) |
* Fixed firewall script again
-rw-r--r-- | module/admin-core/contrib/init.d/luci_freifunk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/module/admin-core/contrib/init.d/luci_freifunk b/module/admin-core/contrib/init.d/luci_freifunk index d3c23e54d..b75fcc4a7 100644 --- a/module/admin-core/contrib/init.d/luci_freifunk +++ b/module/admin-core/contrib/init.d/luci_freifunk @@ -41,6 +41,13 @@ start() { iptables -A luci_freifunk_forwarding -i "$ffif" -o "$ffif" -j ACCEPT } + ### Freifunk DHCP to Freifunk + [ "$internal" -gt 0 -a -n "$ffdif" ] && { + eval "$(ipcalc.sh $ffdip $ffdmask)" + + iptables -t nat -A luci_freifunk_postrouting -s "$NETWORK/$PREFIX" -o "$ffif" -j ACCEPT + } + ### Lan to Freifunk [ -n "$lanif" ] && { eval "$(ipcalc.sh $lanip $lanmask)" |