[vox] Converting Ubuntu Box into an Access Point

Benjamin Allistair ammystars at gmail.com
Mon Oct 16 09:57:14 PDT 2006


I am trying to convert my Ubuntu box into an access point. I only have
my OS X laptop as a client to see if what I'm doing is working.

Basically what I have done is installed hostapd, bridge-utils, and
wireless-tools using apt-get.

I am loading the hostap_ drivers and have blacklists the orinoco_
drivers that come by default.

>From OS X I can see the SSID  but when I go to authenticate, I am only
given the option of using WEP and it won't authenticate anyways.

Below are snippets from what I thought to be relative config file
entries and system info.
-----------------------------------------------------------
Here is a snippet from my /etc/network/interfaces

auto eth0
iface eth0 inet dhcp

auto eth1
#iface eth1 inet manual
        #iwconfig wifi0 mode Master
        #iwconfig eth1 essid Oneil2

iface br0 inet dhcp
        bridge_ports eth0 eth1
        pre-up ifconfig eth0 0.0.0.0 up
        pre-up ifconfig eth1 0.0.0.0 up
        pre-up iwconfig wifi0 mode master
        pre-up brctl addbr br0
        pre-up brctl addbr eth0
        pre-up brctl addbr eth1
        post-down ifconfig eth0 0.0.0.0 down
        post-down ifconfig eth1 0.0.0.0 down
        post-down brctl delif br0 eth0
        post-down brctl delif br0 eth1
        post-down brctl delbr br0

------------------------------------------------------------
Here is my hostapd.conf
interface=eth1
bridge=br0
driver=hostap
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=Oneil24
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
wpa=3
wpa_psk_file=/etc/hostapd/wpa_psk
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
stakey=0

------------------------------------
My /etc/hostapd/wpa_psk file looks like:
00:00:00:00:00:00 1234567890

------------------------------------
yan at celery:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:10:4B:CD:0F:7A
          inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::210:4bff:fecd:f7a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2174 errors:0 dropped:0 overruns:0 frame:0
          TX packets:893 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1713966 (1.6 MiB)  TX bytes:89343 (87.2 KiB)
          Interrupt:11

eth1ap    Link encap:UNSPEC  HWaddr
00-04-E2-80-49-FD-00-01-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:2290  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:5 Base address:0x100

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wifi0     Link encap:UNSPEC  HWaddr
00-04-E2-80-49-FD-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:602 (602.0 b)  TX bytes:512 (512.0 b)
          Interrupt:5 Base address:0x100
---------------------------------------------

yan at celery:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wifi0     IEEE 802.11b  ESSID:"Oneil24"
          Mode:Master  Frequency:2.422 GHz  Access Point: 00:04:E2:80:49:FD
          Bit Rate:11 Mb/s   Sensitivity=1/3
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Power Management:off

eth1      IEEE 802.11b  ESSID:"Oneil24"
          Mode:Master  Frequency:2.422 GHz  Access Point: 00:04:E2:80:49:FD
          Bit Rate:11 Mb/s   Sensitivity=1/3
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:2  Rx invalid frag:0
          Tx excessive retries:9  Invalid misc:13439   Missed beacon:0

sit0      no wireless extensions.

eth1ap    IEEE 802.11b  ESSID:"Oneil24"
          Mode:Master  Frequency:2.422 GHz  Access Point: 00:04:E2:80:49:FD
          Bit Rate:11 Mb/s   Sensitivity=1/3
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Power Management:off

-------------------------------------------------

yan at celery:~$ lsmod | grep hostap
hostap_cs              69272  3
hostap                128260  1 hostap_cs
ieee80211_crypt         7296  3 ieee80211_crypt_wep,ieee80211_crypt_tkip,hostap
pcmcia                 42556  1 hostap_cs


More information about the vox mailing list