* Fixed firewall script again
authorSteven Barth <steven@midlink.org>
Mon, 28 Apr 2008 08:39:44 +0000 (08:39 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 28 Apr 2008 08:39:44 +0000 (08:39 +0000)
module/admin-core/contrib/init.d/luci_freifunk

index d3c23e54d6060a948a78f2ed825d242052557173..b75fcc4a78652fca5bf31a164d7c32d620255568 100644 (file)
@@ -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)"