Re: [Voyage-linux] Problem starting hostapd using Voyage 0.6.1 and madwifi driver on Alix.2d3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kelly Hogan wrote: > You need to define the bridge as part of the hostapd.conf > > ie: > > interface=ath0 > bridge=br0 > > otherwise driver will not pass traffic through the bridge and > initialization will fail. > This should only matter if the wireless device is part of a bridge. - From the configs that he posted, it does not look like ath0 is part of a bridge (it has a different IP from the bridged interface). For this setting to work, you also need to add ath0 to your bridge br0. Ath0 at that point will not need it's own IP. Also, kismet is showing your AP as unsecured because hostap is not running. If hostap is not running, then kismet is not detecting encrypted frames. Here are my configs: ** note, I have two physical devices in my ALix, which is why the bridged device is ath1 ## /etc/network/interfaces ## # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. auto lo iface lo inet loopback auto ath1 iface ath1 inet manual pre-up wlanconfig ath1 destroy || true # set up the ath1 device in AP mode before bringing up the interface (unless you're using AutoCreate) pre-up wlanconfig ath1 create wlandev wifi1 wlanmode ap # remove the ath1 device when bringing the interface down post-down wlanconfig ath1 destroy up iwconfig ath1 essid whytebread5 rate 54M channel 11 up ip link set ath1 up auto br0 iface br0 inet static # Assign your IP address, subnet and mask, broadcast address, and default gateway address 192.168.1.4 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.2 # Bridge eth0 and ath1 with br0. bridge_ports eth0 ath1 ##EOF## ## /etc/hostapd/hostapd.conf ## # based on howto at http://www.linux.com/articles/55617 interface=ath1 bridge=br0 driver=madwifi logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 debug=2 dump_file=/tmp/hostapd.dump ctrl_interface=/var/run/hostapd ctrl_interface_group=0 ssid=mySSID #macaddr_acl=1 #accept_mac_file=/etc/hostapd/accept auth_algs=3 eapol_key_index_workaround=0 eap_server=0 wpa=1 wpa_psk_file=/etc/hostapd/hostapd.wpa_psk wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP wpa_group_rekey=600 wpa_gmk_rekey=86400 ##EOF## The file /etc/hostapd/hostapd.wpa_psk just contains MAC addresses and keys (the PSK I get from running wpa_passphrase). A simpler option might be to use "wpa_passphrase=someasciipassphrase" in your hostapd.conf Also, when making changes to hostapd.conf, don't forget to restart it with "/etc/init.d/hostapd restart" Hth, -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkniN6wACgkQwRXgH3rKGfNUPgCdGvViHbRsaWITxF/A9LFzDrE1 ztgAn0rw9rJCR36mFHXWTgtaMmSdpm6o =nZ11 -END PGP SIGNATURE- ___ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux
Re: [Voyage-linux] Problem starting hostapd using Voyage 0.6.1 and madwifi driver on Alix.2d3
You need to define the bridge as part of the hostapd.conf ie: interface=ath0 bridge=br0 otherwise driver will not pass traffic through the bridge and initialization will fail. On Apr 11, 2009, at 8:04 PM, Punky Tse wrote: Hi Alex, Try change driver=wext. Regards, Punky Alex wrote: Hi, I'm having problem trying to start hostapt on an Alix.2d3 board with an Atheros wifi card (AR5213 chipset) I'm able to turn the wifi interface into managed mode and I can see the unsecure Access Point (canno't connect to it though). But when I try to start the hostapd I always get the following message: voyage:~# hostapd -dd -K -t /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ioctl(SIOCGIFINDEX): No such device madwifi driver initialization failed. 946687574.419793: ath0 : Unable to setup interface. 946687574.419854: Flushing old station entries 946687574.419875: Deauthenticate all stations my hostapd.conf is here -- interface=ath0 driver=madwifi ssid=Voyage hw_mode=g channel=1 logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=1 # Debugging: 0 = no, 1 = minimal, 2 = verbose, 3 = msg dumps, 4 = excessive debug=4 # Dump file for state information (on SIGUSR1) dump_file=/tmp/hostapd.dump #macaddr_acl=0 #auth_algs=1 #ignore_broadcast_ssid=0 wpa=2 wpa_psk =57602025b05e9c5765f3d68c8949598473143f3ece66dd0f96ae4b4869b99bd4 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP CCMP --- my interfaces are here --- # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. auto lo iface lo inet loopback #auto eth0 #iface eth0 inet dhcp #auto eth0 #iface eth0 inet static # address 192.168.5.200 # netmask 255.255.255.0 # broadcast 192.168.5.255 # gateway 192.168.5.1 auto br0 iface br0 inet static address 192.168.5.200 netmask 255.255.255.0 broadcast 192.168.5.255 gateway 192.168.5.1 bridge_ports eth0 eth1 eth2 eth3 auto ath0 iface ath0 inet static pre-up wlanconfig ath0 destroy || true pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap post-down wlanconfig ath0 destroy address 192.18.4.1 netmask 255.255.255.0 broadcast 192.168.4.255 #network 192.168.4.0madwifi-base wifi0 madwifi-mode Master wireless-channel 2 wireless-essid Voyage wireless-txpower 18dBm #wireless-rate 54M up iwpriv ath0 mode 3 #up iwconfig ath0 channel 2 #up iwconfig ath0 essid Voyage #up iwconfig ath0 txpower 18 #up iwconfig ath0 rate auto -- I tried to compile the newest version of the hostapd (0.6.8) but it didn't help either. Some help would be appreciated ___ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux ___ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux ___ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux
Re: [Voyage-linux] Problem starting hostapd using Voyage 0.6.1 and madwifi driver on Alix.2d3
Hi Alex, Try change driver=wext. Regards, Punky Alex wrote: Hi, I'm having problem trying to start hostapt on an Alix.2d3 board with an Atheros wifi card (AR5213 chipset) I'm able to turn the wifi interface into managed mode and I can see the unsecure Access Point (canno't connect to it though). But when I try to start the hostapd I always get the following message: voyage:~# hostapd -dd -K -t /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ioctl(SIOCGIFINDEX): No such device madwifi driver initialization failed. 946687574.419793: ath0 : Unable to setup interface. 946687574.419854: Flushing old station entries 946687574.419875: Deauthenticate all stations my hostapd.conf is here -- interface=ath0 driver=madwifi ssid=Voyage hw_mode=g channel=1 logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=1 # Debugging: 0 = no, 1 = minimal, 2 = verbose, 3 = msg dumps, 4 = excessive debug=4 # Dump file for state information (on SIGUSR1) dump_file=/tmp/hostapd.dump #macaddr_acl=0 #auth_algs=1 #ignore_broadcast_ssid=0 wpa=2 wpa_psk=57602025b05e9c5765f3d68c8949598473143f3ece66dd0f96ae4b4869b99bd4 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP CCMP --- my interfaces are here --- # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. auto lo iface lo inet loopback #auto eth0 #iface eth0 inet dhcp #auto eth0 #iface eth0 inet static # address 192.168.5.200 # netmask 255.255.255.0 # broadcast 192.168.5.255 # gateway 192.168.5.1 auto br0 iface br0 inet static address 192.168.5.200 netmask 255.255.255.0 broadcast 192.168.5.255 gateway 192.168.5.1 bridge_ports eth0 eth1 eth2 eth3 auto ath0 iface ath0 inet static pre-up wlanconfig ath0 destroy || true pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap post-down wlanconfig ath0 destroy address 192.18.4.1 netmask 255.255.255.0 broadcast 192.168.4.255 #network 192.168.4.0 madwifi-base wifi0 madwifi-mode Master wireless-channel 2 wireless-essid Voyage wireless-txpower 18dBm #wireless-rate 54M up iwpriv ath0 mode 3 #up iwconfig ath0 channel 2 #up iwconfig ath0 essid Voyage #up iwconfig ath0 txpower 18 #up iwconfig ath0 rate auto -- I tried to compile the newest version of the hostapd (0.6.8) but it didn't help either. Some help would be appreciated ___ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux ___ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux
Re: [Voyage-linux] Problem starting hostapd using Voyage 0.6.1 and madwifi driver on Alix.2d3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alex wrote: > Hi, > > I'm having problem trying to start hostapt on an Alix.2d3 board with an > Atheros > wifi card (AR5213 chipset) > > I'm able to turn the wifi interface into managed mode and I can see the > unsecure > Access Point (canno't connect to it though). But when I try to start the > hostapd > I always get the following message: > > voyage:~# hostapd -dd -K -t /etc/hostapd/hostapd.conf > Configuration file: /etc/hostapd/hostapd.conf > ioctl(SIOCGIFINDEX): No such device > madwifi driver initialization failed. > 946687574.419793: ath0 : Unable to setup interface. > 946687574.419854: Flushing old station entries > 946687574.419875: Deauthenticate all stations > Has the ath0 device been created? run iwconfig with no arguments. If you do not see ath0 then the device is not being created properly. I also have my athX device as part of a bridge, which I needed to specify in the hostapd.conf. > wpa_pairwise=TKIP CCMP Unless you are absolutely sure you need it, there is no reason to use TKIP. This has nothing to do with your problem, just a security tip. > my interfaces are here > --- > # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or > # /usr/share/doc/ifupdown/examples for more information. > auto lo > iface lo inet loopback > > #auto eth0 > #iface eth0 inet dhcp > > #auto eth0 > #iface eth0 inet static > # address 192.168.5.200 > # netmask 255.255.255.0 > # broadcast 192.168.5.255 > # gateway 192.168.5.1 > > auto br0 > iface br0 inet static > address 192.168.5.200 > netmask 255.255.255.0 > broadcast 192.168.5.255 > gateway 192.168.5.1 > bridge_ports eth0 eth1 eth2 eth3 > > auto ath0 > iface ath0 inet static > pre-up wlanconfig ath0 destroy || true > pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap > post-down wlanconfig ath0 destroy > address 192.18.4.1 > netmask 255.255.255.0 > broadcast 192.168.4.255 > #network 192.168.4.0 > madwifi-base wifi0 > madwifi-mode Master > wireless-channel 2 > wireless-essid Voyage > wireless-txpower 18dBm > #wireless-rate 54M > up iwpriv ath0 mode 3 > #up iwconfig ath0 channel 2 > #up iwconfig ath0 essid Voyage > #up iwconfig ath0 txpower 18 > #up iwconfig ath0 rate auto > -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkngVOUACgkQwRXgH3rKGfMazQCeK/migfuZU8OmHIfTQ23feD0Z RG8An3vznXGg/qFxE+EjrLHdsz1BCHB9 =vARX -END PGP SIGNATURE- ___ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux
[Voyage-linux] Problem starting hostapd using Voyage 0.6.1 and madwifi driver on Alix.2d3
Hi, I'm having problem trying to start hostapt on an Alix.2d3 board with an Atheros wifi card (AR5213 chipset) I'm able to turn the wifi interface into managed mode and I can see the unsecure Access Point (canno't connect to it though). But when I try to start the hostapd I always get the following message: voyage:~# hostapd -dd -K -t /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ioctl(SIOCGIFINDEX): No such device madwifi driver initialization failed. 946687574.419793: ath0 : Unable to setup interface. 946687574.419854: Flushing old station entries 946687574.419875: Deauthenticate all stations my hostapd.conf is here -- interface=ath0 driver=madwifi ssid=Voyage hw_mode=g channel=1 logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=1 # Debugging: 0 = no, 1 = minimal, 2 = verbose, 3 = msg dumps, 4 = excessive debug=4 # Dump file for state information (on SIGUSR1) dump_file=/tmp/hostapd.dump #macaddr_acl=0 #auth_algs=1 #ignore_broadcast_ssid=0 wpa=2 wpa_psk=57602025b05e9c5765f3d68c8949598473143f3ece66dd0f96ae4b4869b99bd4 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP CCMP --- my interfaces are here --- # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or # /usr/share/doc/ifupdown/examples for more information. auto lo iface lo inet loopback #auto eth0 #iface eth0 inet dhcp #auto eth0 #iface eth0 inet static # address 192.168.5.200 # netmask 255.255.255.0 # broadcast 192.168.5.255 # gateway 192.168.5.1 auto br0 iface br0 inet static address 192.168.5.200 netmask 255.255.255.0 broadcast 192.168.5.255 gateway 192.168.5.1 bridge_ports eth0 eth1 eth2 eth3 auto ath0 iface ath0 inet static pre-up wlanconfig ath0 destroy || true pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap post-down wlanconfig ath0 destroy address 192.18.4.1 netmask 255.255.255.0 broadcast 192.168.4.255 #network 192.168.4.0 madwifi-base wifi0 madwifi-mode Master wireless-channel 2 wireless-essid Voyage wireless-txpower 18dBm #wireless-rate 54M up iwpriv ath0 mode 3 #up iwconfig ath0 channel 2 #up iwconfig ath0 essid Voyage #up iwconfig ath0 txpower 18 #up iwconfig ath0 rate auto -- I tried to compile the newest version of the hostapd (0.6.8) but it didn't help either. Some help would be appreciated ___ Voyage-linux mailing list Voyage-linux@list.voyage.hk http://list.voyage.hk/mailman/listinfo/voyage-linux