From 088807faa90ba4f052068ecba06d5f1791d88ab2 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 28 Apr 2008 08:39:44 +0000 Subject: [PATCH] * Fixed firewall script again --- module/admin-core/contrib/init.d/luci_freifunk | 7 +++++++ 1 file changed, 7 insertions(+) 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)" -- 2.25.1