OpenWRT 10 3 1: Unterschied zwischen den Versionen

Aus Freifunk Kiel
Zur Navigation springen Zur Suche springen
Zeile 72: Zeile 72:
 
=== DHCP auf WLAN-Interface konfigurieren ===
 
=== DHCP auf WLAN-Interface konfigurieren ===
  
config dhcp freifunk             
+
config dhcp freifunk             
 
         option interface        freifunk
 
         option interface        freifunk
 
         option start    130                                   
 
         option start    130                                   
 
         option limit    120       
 
         option limit    120       
 
         option leasetime        12h
 
         option leasetime        12h

Version vom 16. Februar 2011, 21:38 Uhr

In Arbeit durch Sven Thomsen....

Ziel

Ziel dieser Anleitung ist es, einen Freifunk-Router für Freifunk Kiel bereitzustellen.

Hierbei verwenden wir ausschließlich fertige Programmpakete, man muss also nichts selbst kompilieren.

Alle LAN-Schnittstellen des Routers sind nicht mit dem Kieler Freifunk-Netz verbunden.

Eine mögliche Internetverbindung über die WAN-Schnittstelle wird NICHT freigegeben. Die WAN-Schnittstelle kann aber zur Vernetzung über ein tinc-VPN genutzt werden. Die optionale Einrichtung eines solchen VPNs wird weiter unten beschrieben.

Vorgehen

(erstmal nur ein "Notizblock", Erläuterungen kommen später)

Hostname setzen

/etc/config/system:

config system
      option hostname NODENAME


Administrationsfrontend mit SSL absichern

opkg install luci-ssl
/etc/init.d/uhttpd restart

OLSRD installieren

opkg install luci-app-olsr

Firewallzone "Freifunk" anlegen

In /etc/config/firewall

config zone      
       option name     freifunk
       option input    ACCEPT
       option output   ACCEPT 
       option forward  REJECT

WLAN-Interface konfigurieren

In /etc/config/network

config 'interface' 'freifunk'           
       option 'proto' 'static'         
       option 'ifname' 'wlan0' 
       option 'ipaddr' '10.14.XX.XX'
       option 'netmask' '255.255.0.0'
       option 'defaultroute' '0'     
       option 'peerdns' '0'   

In /etc/config/wireless

config wifi-device  radio0
	option type     mac80211
	option channel  10
	option macaddr	00:XX:XX:XX:XX:XX
	option hwmode	11g
config wifi-iface
	option device   radio0
	option network  freifunk
	option mode     adhoc
	option ssid     kiel.freifunk.net
	option bssid	12:CA:FF:EE:BA:BE
	option encryption none

DHCP auf WLAN-Interface konfigurieren

config dhcp freifunk             
       option interface        freifunk
       option start    130                                   
       option limit    120      
       option leasetime        12h