Software access point

From ArchWiki
Revision as of 19:24, 10 June 2011 by Mtorromeo (talk | contribs) (Things you need: Incorrect package name)
Jump to navigation Jump to search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

A software access point is used when you want your computer to act as an access point for the local wireless network. It saves you the trouble of getting a separate wireless router.

Things you need

You will need:

  • prism2/2.5/3 pure pci wireless card or nl80211 compatible cards (e.g. ath9k)
  • wireless_tools, hostapd and bridge-utils from pacman

Steps to implement

The config file of hostapd /etc/hostapd/hostapd.conf will help you to put your wireless device into master mode and willing to accept connection from other computers with encrypted password.

Here is an example from

wpa_pairwise=TKIP CCMP

before hostapd does its job, eth0, wlan0 and br0 must be up and do not have any address. we can put the following lines in /etc/rc.conf

eth0="eth0 up"
wlan0="wlan0 up"
br0="br0 netmask up"
INTERFACES=(lo eth0 wlan0 br0)

in the /etc/conf.d/bridges file, uncomment the lines (change eth1 to wlan0)

bridge_br0="eth0 wlan0"

we are ready to go, just reboot the machine and use another computer to see if you can find the "test" wireless connection.

Note: *untested* if your computer stops at the sign of "waiting for IP address" etc, that may be it can not find a dhcp server. so you need to set up one.

See also