summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--module/admin-core/contrib/init.d/luci_freifunk7
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 d3c23e54d6..b75fcc4a78 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)"