Network


flat network as peer to peer network

The relearn network is in fact the most basic kind of network -- in effect just a switch that we all connect to.
The actual "network" is in fact in the agreement we make to follow a protocol to establish a network and individual identity.

We used 2 openWRT routers in "bridge" mode to extend the wired network with multiple wireless hotspot nodes.
http://openwrt.org
The openwrt settings were in fact very small changes from the default state.
See below for the full openwrt setup files 

a first drawing of the infrastructure:




../images/network_infrastructure02.png


second drawing:

../images/network_infrastructure.png


OPENWRT SETUP


files not listed are unchanged from their original state.
Base on openwrt Attitude Adjustment 12.09
_______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- ATTITUDE ADJUSTMENT (12.09, r36088)

# /etc/config/network

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
        option ifname 'eth0'
        option type 'bridge'
        option proto 'static'
        option ipaddr '10.9.8.5'
        option netmask '255.255.255.0'

#/etc/config/wireless

config wifi-device  radio0
        option type     mac80211
        option channel  11
        option macaddr        64:66:b3:d1:28:d6
        option hwmode        11ng
        option htmode        HT20
        list ht_capab        SHORT-GI-20
        list ht_capab        SHORT-GI-40
        list ht_capab        RX-STBC1
        list ht_capab        DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:
        #option disabled 1

config wifi-iface
        option device   radio0
        option network  lan
        option mode     ap
        option ssid     RELEARN5
        option encryption none

#/etc/config/uhttpd

# Server configuration
config uhttpd relearn
        list listen_http        0.0.0.0:80
        option home                /srv/www/


config uhttpd main

        # HTTP listen addresses, multiple allowed
        list listen_http        0.0.0.0:81
#        list listen_http        [::]:80

        # HTTPS listen addresses, multiple allowed
        list listen_https        0.0.0.0:443
#        list listen_https        [::]:443

        # Server document root
        option home                /www

# ... <snip> ...

Server



Server was based on Debian + Gnome / Jessie (32bit)
Running:
* Moved document root to /home/www-data (see below apache config)
/etc/apache2/sites-available/000-default.conf

ServerAdmin webmaster@localhost DocumentRoot /home/www-data ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all ######################################### # CUSTOM listing HEADER + FOOTER HeaderName /include/HEADER.html # ReadmeName /include/README.html #########################################