Inhaltsverzeichnis
OpenMesh/Robin mit CoovaChilli
/etc/init.d/chilli anpassen
Auf den WLAN-Routern muss die /etc/init.d/chilli angepasst werden, da chilli sonst unter Umständen nicht startet:
vorher:
ifconfig $HS_LANIF 0.0.0.0
nachher:
ifconfig $HS_LANIF 0.0.0.0 mtu 1500
FreeRadius und MySQL installieren
UAM Server (Web Authentication Portal) aufsetzen
- Download von daloradius
- entpacken
- im Verzeichnis daloradius-$VERSION/contrib gibt es verschiedene Versionen von Login-Seiten, eine davon einfach auf den Webserver kopieren und die Variable $uamsecret anpassen. Muss die gleiche sein, die auch in der chilli-Konfiguration verwendet wird.
- Siehe dashboard settings.
Dashboard-Einstellungen für Access Point #1
- Captive Portal Type: Other Captive Portal Providers → Other RADIUS Provider
- RADIUS Server 1: <radius_server_ip>
- RADIUS Server 2: <radius_server_ip>
- RADIUS Secret: <your_radius_shared_key>
- RADIUS NASID: <empty_or_'other'>
- UAM Server: <uam_server_name> # Web authentication portal ip or fqdn
- UAM URL: <URL_of_login_script_on_UAM_server> # e.g. /hotspot/login.pl
- UAM Secret: <password_zur_verschluesselung_der_user_anmeldungs_infos>
Leider unterstützt orangemesh (noch) keine „Captive Portal“ Einstellungen.
Probleme
chilli
root@fon2100:~# chilli -fd
...
redir.c: 1913: 0 (Debug) shutdown socket for reading
redir.c: 1859: 12 (Cannot allocate memory) fork() returned -1
...
root@fon2100:~# ps w
PID Uid VSZ Stat Command
1 root 2468 S init
2 root SW< [kthreadd]
3 root SW< [ksoftirqd/0]
4 root SW< [events/0]
5 root SW< [khelper]
23 root SW< [kblockd/0]
51 root SW< [kswapd0]
52 root SW< [aio/0]
67 root SW< [mtdblockd]
197 root SWN [jffs2_gcd_mtd2]
315 root 2468 S logger -s -p 6 -t
316 root 2468 S init
324 root 2480 S syslogd -C16
326 root 2464 S klogd
336 root 1132 S /sbin/hotplug2 --override --persistent --max-children
691 root 2484 S /sbin/udhcpc -i eth0 -t 10 -n -s /usr/share/udhcpc/ro
1805 root 3504 S hostapd -B /var/run/hostapd-ath1.conf
1898 root 3504 S hostapd -B /var/run/hostapd-ath2.conf
1908 root 1936 S /usr/sbin/dropbear -p 22
1993 root 1576 S /usr/sbin/batmand -o 1500 -g 5000 --hop-penalty 20 at
1995 root 1576 S /usr/sbin/batmand -o 1500 -g 5000 --hop-penalty 20 at
1996 root 1576 S /usr/sbin/batmand -o 1500 -g 5000 --hop-penalty 20 at
1997 root 1576 S /usr/sbin/batmand -o 1500 -g 5000 --hop-penalty 20 at
2064 root 2972 S /usr/sbin/dhcpd -q -cf /etc/isc-dhcpd.conf -lf /tmp/d
2102 root 2472 S crond -c /etc/crontabs
17420 root 2464 S /usr/sbin/httpd -p 8080 -h /www
19557 root SW [pdflush]
19559 root 1992 S /usr/sbin/dropbear -p 22
19572 root SW [pdflush]
19637 root 1108 S duende /usr/sbin/maradns
19638 nobody 1744 S /usr/sbin/maradns
19640 66 1108 S duende /usr/sbin/maradns
19682 root 2480 S -ash
19714 nobody 1744 S /usr/sbin/maradns
21864 root 5740 S /usr/sbin/chilli
22250 root 2468 R ps w
Wir müssen also unbedingt Speicher einparen. Zumal der per cron aufgerufene „chilli_query“ auch gern hängenbleibt.
- httpd, brauchen wir den? - Ausmachen.
maradns
- Benutzt OpenDNS als upstream_server. Das kann sehr weit weg sein und außerdem geht es OpenDNS nichts an, was in meinem Netz gefragt ist ;(. OpenDNS nur benutzen, wenn keine anderen Nameserver konfiguriert sind.
- „maximum_cache_elements“ default ist 1024. min_ttl = 300, min_ttl_cname = 900. Was macht das in Speicherverbrauch aus? Wo speichert er das hin?
- Dashboard und /etc/init.d/nameserver entsprechend anpassen oder
- andere Nameserver per dhcp vorgeben und auf maradns verzichten