projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de13f9f
)
* Fixed firewall script again
author
Steven Barth
<steven@midlink.org>
Mon, 28 Apr 2008 08:39:44 +0000
(08:39 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 28 Apr 2008 08:39:44 +0000
(08:39 +0000)
module/admin-core/contrib/init.d/luci_freifunk
patch
|
blob
|
history
diff --git
a/module/admin-core/contrib/init.d/luci_freifunk
b/module/admin-core/contrib/init.d/luci_freifunk
index d3c23e54d6060a948a78f2ed825d242052557173..b75fcc4a78652fca5bf31a164d7c32d620255568 100644
(file)
--- 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)"