Default Configurations for Other APs

Setting up an Ubiquiti Nanostation M2 as a Village Telco Supernode
 Flash the device with a version of the OpenWRT firmware (see http://groups.google.com/group/village-telco-dev/browse_thread/thread/9239b1866ae87597) Telnet to the device at 192.168.1.1 and type passwd to enable ssh login Install batman, type opkg update opkg install batmand  Configure batmand to auto start, type /etc/init.d/batmand enable  Disable the firewall (for now), type /etc/init.d/firewall disable  Enable the Nanostation to be a gateway by setting up network address translation (NAT) using iptables. Edit the file /etc/init.d/network. Insert the following line of text as the last line in the sections “boot”, “start” and “restart”: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE  Configure the interfaces files as shown below



- /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 proto      static option ipaddr     192.168.1.100 option netmask    255.255.255.0 option gateway    192.168.1.1 option dns        192.168.1.1

config interface wan option ifname     wlan0 option proto      static option ipaddr     10.130.1.1 option netmask    255.255.255.0 -- /etc/config/wireless -- config wifi-device       radio0 option type       mac80211 option macaddr    00:15:6d:18:37:e4 option hwmode     11g list ht_capab     SHORT-GI-20 list ht_capab     SHORT-GI-40 list ht_capab     TX-STBC list ht_capab     RX-STBC1 list ht_capab     DSSS_CCK-40 option channel    1 option disabled   0 option antenna    vertical

config wifi-iface option device     radio0 option network    wan option mode       adhoc option ssid       potato option bssid      01:CA:FF:EE:BA:BE option encryption none --- /etc/config/batmand --- config batmand general option interface            wlan0 option hna option gateway_class        128 option originator_interval option preferred_gateway option routing_class option visualisation_srv    10.130.1.1 option policy_routing_script option disable_client_nat option disable_aggregation