Summary
__20h__ got us an ubiquity access point, which is connected to [1].
Architecture
The AP is connected to the re0 port on our firewall, and mounted in the antenna mast on the roof. The SSID itself is open, and connects to the Freifunk network over VPN. It is not possible to connect to the NURDspace network if you connect to this AP. Ratelimiting is applied on the ap. 20mbit/s down, and 5mbit/s up.
Monitoring
On time.lan.nurd.space (the raspberry pi doing NTP via GPS) is polling for the chemnitz.freifunk.net wifi ssid (as it is as raspberry pi and has wifi...). If it is not available, then a message is sent to the irc-bofh channel.
#! /usr/bin/sh /usr/sbin/iwlist wlan0 scan | /usr/bin/grep -q chemnitz.freifunk.net STATE=$? STATE_FILE=/tmp/.chemnitz.freifunk.net.state PREVSTATE=`cat $STATE_FILE 2> /dev/null` if [ $STATE != "$PREVSTATE" ] ; then echo state changed from "$PREVSTATE" to $STATE echo $STATE > $STATE_FILE if [ $STATE -eq 1 ] ; then echo freifunk node is down /usr/bin/mosquitto_pub -h mqtt.vm.nurd.space -t GHBot/to/irc/nurdsbofh/notice -m 'Freifunk node (__20h__) is down' else echo freifunk node is up again /usr/bin/mosquitto_pub -h mqtt.vm.nurd.space -t GHBot/to/irc/nurdsbofh/notice -m 'Freifunk node (__20h__) is up again' fi fi