#!/bin/sh export DATE="27.09.2006" export TITLE="Verwaltung: IP-Vergabe" . ${0%/*}/cgi-bin-pre.sh cat<Verwaltung: IP-Vergabe EOF if [ "$REQUEST_METHOD" = "POST" ]; then read QUERY_STRING fi if [ -z "$QUERY_STRING" ]; then #Speedups stadt="$(nvram get ff_ipstadt)" projekt="$(nvram get ff_ipprojekt)" xnode="$(nvram get ff_ipxnode)" if [ -z "$projekt" ]; then projekt="224" fi if [ -z "$stadt" ]; then stadt="leipzig" fi if [ -z "$xnode" ]; then xnode="5" fi wan_dns="$(nvram get wan_dns)" #wan_dns="" fw_disable="$(nvram get fw_disable)" ff_hna4="$(nvram get ff_hna4)" cat<
Stadt:

Projekt: (0-255)
Node:

Nameserver:
Firewall:ausschalten
Administration:Fernwartung nicht zulassen
 

Info: Mit diesen Einstellungen passt Ihr den vorliegenden Linksys komplett an die Bedürfnisse im Freifunk-Netzwerk an. Weitere Einstellungen auf anderen Verwaltungseiten sind eigentlich nicht notwendig und mit größter Vorsicht zu aendern.

Bei neuerworbenen Geraeten oder unerklärlichen Erscheinungen empfiehlt sich vor diesen Einstellungen ein Neustart mit den Grundeinstellungen des Bootloaders . Vorsicht mit den IP-Adressen, auch diese sind dann wieder auf Standardwerte gesetzt.

Vorsicht bei schon integrierten Nodes. OLSR-HNA- und LAN-Einstellungen werden zurückgesetzt! EOF else IFS=\&;set ${QUERY_STRING%%[^%&=+-:@-_a-z~]*};unset IFS;eval $* #Berechnungen fuer Anzeige und Umstellung ff_ipstadt=$stadt ff_ipprojekt=$projekt ff_ipxnode=$xnode wl0_channel="1" wl0_ssid="freifunk.net" wmode="ad-hoc" wl0_frag="2346" wl0_rts="250" test "$stadt" = "leipzig" && wl0_ssid="leipzig.freifunk.net" test "$stadt" = "gadow" && wl0_ssid="gadow.freifunk.net" test "$stadt" = "halle" && wl0_ssid="halle.freifunk.net" test "$stadt" = "dresden" && wl0_ssid="dresden.freifunk.net" test "$stadt" = "hermsdorf" && wl0_ssid="hermsdorf.freifunk.net" test "$stadt" = "weissenfels" && wl0_ssid="weissenfels.freifunk.net" test "$stadt" = "cottbus" && wl0_ssid="cottbus.freifunk.net" test "$stadt" = "sundhausen" && wl0_ssid="sundhausen.freifunk.net" test "$stadt" = "basti" && wl0_ssid="basti.freifunk.net" wan_hostname="$projekt-$xnode" wifi_proto="static" wifi_ipaddr="104.61.$projekt.$xnode" wifi_netmask="255.0.0.0" wldhcp="10.10.$projekt.64/29" test "$xnode" = "1" && wldhcp="10.61.$projekt.64/29" test "$xnode" = "2" && wldhcp="10.61.$projekt.72/29" test "$xnode" = "3" && wldhcp="10.61.$projekt.80/29" test "$xnode" = "4" && wldhcp="10.61.$projekt.88/29" test "$xnode" = "5" && wldhcp="10.61.$projekt.96/29" test "$xnode" = "6" && wldhcp="10.61.$projekt.104/29" test "$xnode" = "7" && wldhcp="10.61.$projekt.112/29" test "$xnode" = "8" && wldhcp="10.61.$projekt.120/29" test "$xnode" = "9" && wldhcp="10.61.$projekt.128/29" test "$xnode" = "10" && wldhcp="10.61.$projekt.136/29" test "$xnode" = "11" && wldhcp="10.61.$projekt.144/29" test "$xnode" = "12" && wldhcp="10.61.$projekt.152/29" test "$xnode" = "13" && wldhcp="10.61.$projekt.160/29" test "$xnode" = "14" && wldhcp="10.61.$projekt.168/29" test "$xnode" = "15" && wldhcp="10.61.$projekt.176/29" test "$xnode" = "16" && wldhcp="10.61.$projekt.184/29" test "$xnode" = "17" && wldhcp="10.61.$projekt.192/29" test "$xnode" = "18" && wldhcp="10.61.$projekt.200/29" test "$xnode" = "19" && wldhcp="10.61.$projekt.208/29" test "$xnode" = "20" && wldhcp="10.61.$projekt.216/29" test "$xnode" = "21" && wldhcp="10.61.$projekt.224/29" test "$xnode" = "22" && wldhcp="10.61.$projekt.232/29" test "$xnode" = "23" && wldhcp="10.61.$projekt.240/29" test "$xnode" = "24" && wldhcp="10.61.$projekt.248/29" test "$xnode" = "25" && wldhcp="10.61.$projekt.56/30" test "$xnode" = "26" && wldhcp="10.61.$projekt.52/30" test "$xnode" = "27" && wldhcp="10.61.$projekt.48/30" test "$xnode" = "28" && wldhcp="10.61.$projekt.44/30" test "$xnode" = "29" && wldhcp="10.61.$projekt.40/30" test "$xnode" = "30" && wldhcp="10.61.$projekt.36/30" #test "$xnode" = "31" && wldhcp="10.61.$projekt.32/29" #test "$xnode" = "32" && wldhcp="10.61.$projekt.0/29" ff_wldhcp="$wldhcp,255.255.255.0" ff_qoslev="2" ff_qos="yes" ff_dyngw="1" lan_proto="static" lan_ipaddr="192.168.1.1" lan_netmask="255.255.255.0" dhcp_start="10" dhcp_num="40" if [ -n "$post_ip1" ]; then cat< EOF test "$projekt" = "224" && exit DIRTY= for V in dhcp_start dhcp_num wan_dns wan_hostname ff_ipstadt ff_ipprojekt ff_ipxnode wl0_ssid wl0_channel wifi_proto wifi_ipaddr wifi_netmask ff_wldhcp ff_qos ff_qoslevel lan_proto lan_ipaddr lan_netmask wl0_rts wl0_frag wmode fw_disable; do eval "C=\$$V" C=$(unescape $C) if [ "$C" != "$(nvram get $V)" ]; then DIRTY=1 nvram set $V="$C" fi done nvram set lan_proto="static" nvram set ff_lan_proto="static" nvram set wmode="ad-hoc" nvram set ff_bssid="02:ca:ff:ee:ba:be" nvram set wl0_mode="sta" nvram set wan_domain="ff" nvram set wl0_infra=0 nvram set ff_release="1311b Freifunk Leipzig" #nvram set ff_fisheye=1 ##falls geraet neu bzw. keine sendeleistung eingestellt txpwr="$(nvram get ff_txpwr)" if [ "$txpwr" = "" ]; then nvram set wl0_phytype=g nvram set ff_txpwr=30 nvram set wl0_antdiv=0 nvram set ff_txant=0 fi cp /etc/authorized_keys /etc/dropbear/ if [ "$sshkeys" = "1" ]; then rm /etc/dropbear/authorized_keys fi #etwas gegen sonnenwinde und funkschatten nvram set wl0_lazywds=0 nvram set wl0_frameburst=off nvram set wl0_gmode=1 nvram set wl0_gmode_protection=off nvram set wl0_closed=0 #nvram set wl0_gmode_protection_control=2 #nvram set wl0_gmode_protection_cts=1 #nvram set wl0_gmode_protection_override=1 nvram unset wl0_gmode_protection_control nvram unset wl0_gmode_protection_cts nvram unset wl0_gmode_protection_override nvram unset wan_domain nvram unset ff_dmz checkbridge nvram commit>/dev/null 2>&1 rm /etc/freshflash cat<
WLAN Kanal: $wl0_channel (Ad-hoc-Modus)
WLAN Tuning: B/G-Modus, CTS, kein WDS
WLAN SSID: $wl0_ssid
WLAN IP-Adresse: $wifi_ipaddr (statisch)
WLAN Netzmaske: $wifi_netmask
WLAN - für Clients DHCP: $wldhcp
OLSR Tuning: RTS=$wl0_rts/FRAG=$wl0_frag
OLSR Tuning: Fisheye-Routing, feste BSSID (02:ca:ff:ee:ba:be)
OLSR QoS mit ETX: $ff_qos / Level $ff_qoslev (Routen und Gateway)
Nameserver DNS: $wan_dns
LAN: IP-Adresse: $lan_ipaddr (statisch)
LAN: Netzmaske: $lan_netmask
LAN: DHCP-Start-IP: $dhcp_start
LAN: DHCP-Anzahl: $dhcp_num
Identifikation Name . Domain: $wan_hostname . ff
sonstiges Vorgaben: Firewall $(if [ "$fw_disable" = "1" ];then echo ': aus';fi) $(if [ "$fw_disable" = "0" ];then echo ': an';fi)
OLSR-HNA: $(if [ "$hna" = "" ];then echo 'aus';fi) $ff_hna4
bitte noch ein paar Sekunden warten, ggf. eigene Anpassungen (LAN-Kopplung?) vornehmen. Bitte neustarten, damit die Einstellungen wirksam werden:
   

Info: Du hast es so gut wie geschafft, das Gerät upzudaten.
Willkommen in der Freifunk-Community! EOF fi fi . ${0%/*}/cgi-bin-post.sh