Projet

Général

Profil

Wifi Access point

Needed :

  • Raspbian
  • Wifi chipset that support AP/Master mode (We will use RT5370)
  • firmware for your wifi chipset (firmware-ralink for the RT5370)

Note : if your dont find the firmware for your chipset check your sources.list add the non-free repository

Installation

Install hostapd

aptitude install hostapd

Configure hostapd

Edit /etc/default/hostapd

DAEMON_CONF="/etc/hostapd/hostapd.conf"

Create and edit /etc/hostapd/hostapd.conf

interface=wlan0
bridge=br0 #if your whant to bridge your AP to the LAN interface
driver=nl80211
country_code=FR #adjust to your country
ssid=Regdrasil-DS
hw_mode=b
channel=1
#WEP
auth_algs=2  
wep_default_key=0
wep_key0=1234567890

/!\ This configuration use WEP for security, don't use this if your don't have to (Ex : the Nintendo DS require WEP)

Start the hostapd service

service hostapd start

You should have your AP set.

Brigde to the LAN interface

Install bridge-utils

aptitude install bridge-utils

Edit /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet manual

#wlan0
allow-hotplug wlan0
iface wlan0 inet manual

#bridge
auto br0
iface br0 inet dhcp
    bridge_ports eth0

Note : don't add wlan0 to the bridge, hostapd, will do it

Reboot

reboot