config_get wanif wan ifname
config_get lanif lan ifname
config_get ffif ff ifname
+ config_get ffdif ffdhcp ifname
config_get lanip lan ipaddr
config_get lanmask lan netmask
config_get ffip ff ipaddr
config_get ffmask ff netmask
+ config_get ffdip ffdhcp ipaddr
+ config_get ffdmask ffdhcp netmask
+
[ -n "$ffif" ] || return 0
iptables -t nat -A luci_freifunk_postrouting -s "$NETWORK/$PREFIX" -o "$wanif" -j MASQUERADE
}
+ ### Freifunk DHCP to Wan
+ [ "$internet" -gt 0 -a -n "$ffdif" ] && {
+ eval "$(ipcalc.sh $ffdip $ffdmask)"
+
+ iptables -t nat -A luci_freifunk_postrouting -s "$NETWORK/$PREFIX" -o "$wanif" -j MASQUERADE
+ }
+
### Hook in the chains
iptables -A forwarding_rule -j luci_freifunk_forwarding
iptables -t nat -A postrouting_rule -j luci_freifunk_postrouting
<p><a href="<%=controller%>/admin/system/reboot?reboot=1"><%:reboot_do Neustart durchführen%></a></p>
<% else %>
<p><%:reboot_running Bitte warten: Neustart wird durchgeführt...%></p>
-<script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 45000)</script>
+<script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 60000)</script>
<% end %>
<%+footer%>
\ No newline at end of file