Difference between revisions of "Software access point"

From ArchWiki
Jump to: navigation, search
m ("/etc/conf.d/bridge" changed to "/etc/conf.d/bridges")
Line 42: Line 42:
in the /etc/conf.d/bridge file, uncomment the lines (change eth1 to wlan0)
in the /etc/conf.d/bridges file, uncomment the lines (change eth1 to wlan0)

Revision as of 11:07, 2 January 2011

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 http://www.su-root.eu/computing/turn-your-linux-computer-in-a-wireless-access-point-using-hostapd

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.

  • 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

  • UPDATE* The hostap-driver in pacman works, too. Thanks Xentac!
  • ANOTHER UPDATE* Hostap-driver is in the 2.6.15 kernel. Also, DCHP requests are passed to the wired connection through wireless, so dhcpd is not needed for this.
  • Update (2010-12-17) : updated packages requirement
  • Update (2010-12-22) : updated config files for rc.conf, hostapd.conf and bridge.
  • Update (2010-12-29) : added channel=6 in hostapd.conf