Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
WiFi - wpa_supplicant, hidden SSID, WPA-PSK => AP not found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
leguaan
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2005
Posts: 107
Location: Slovakia

PostPosted: Wed May 17, 2006 5:40 am    Post subject: WiFi - wpa_supplicant, hidden SSID, WPA-PSK => AP not fou Reply with quote

Hello,
The WiFi connection in my work finally started to take care about securing the network.
However, I couldn't connect using iwconfig and ndiswrapper anymore.
I had to emerge wpa_supplicant,
but it doesn't seem to well for me...
There will probably be some stupid mistake I'm doing.

My /etc/wpa_supplicant.conf looks like this:
Quote:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
ssid="Net"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
# pairwise=CCMP TKIP
# group=CCMP TKIP WEP104 WEP40
psk="aiesecbbefumbtajovskeho10"
priority=5
}


When I try to start the connection with /etc/init.d/net.wlan0 start,
the output is:

Quote:

* Starting wlan0
* Configuring wireless network for wlan0
* no access points found
* Couldn't find any access points on wlan0
* Failed to configure wireless for wlan0 [!!]


And with
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dndiswrapper -dd
I get the output:

Quote:

Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'ndiswrapper' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
ap_scan=1
Line: 22 - start of a new network block
ssid - hexdump_ascii(len=3):
4e 65 74 Net
scan_ssid=1 (0x1)
proto: 0x1
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=25): [REMOVED]
priority=5 (0x5)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 5
id=0 ssid='Net'
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=19 WE(source)=18 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
Own MAC address: 00:13:d4:77:60:59
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
Setting scan request: 0 sec 100000 usec
Added interface wlan0
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=3):
4e 65 74 Net
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 5
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 5
No suitable AP found.


going on and on and on...

Can you help me???

Thanks a lot.

(
notebook ASUS A6L,
ndiswrapper using bcmwl5a driver,

localhost david # lspci | grep Wireless
01:04.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)

the AP is MSI GATEWAY 54Mbps RG54GS2
hidden SSID
WPA-PSK
TKIP
)
_________________
Since he could no longer be of any use to me,I left him there on the stones without much regret and whistled down a few vultures which settled down on him in order to guard him. (Kafka)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed May 17, 2006 8:52 am    Post subject: Reply with quote

What makes you think hiding the SSID makes it secure? It doesn't make it any more secure but it does make it a darn sight harder to get it to work.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
leguaan
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2005
Posts: 107
Location: Slovakia

PostPosted: Wed May 17, 2006 10:02 am    Post subject: Reply with quote

because people who are for example waiting for a bus, and run network scanning, won't find it... I don't know, it wasn't my decision... Is it possible to make it work with hidden id?
_________________
Since he could no longer be of any use to me,I left him there on the stones without much regret and whistled down a few vultures which settled down on him in order to guard him. (Kafka)
Back to top
View user's profile Send private message
htranou
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2006
Posts: 96

PostPosted: Wed May 17, 2006 2:05 pm    Post subject: Reply with quote

leguaan wrote:
because people who are for example waiting for a bus, and run network scanning, won't find it... I don't know, it wasn't my decision... Is it possible to make it work with hidden id?


If there is traffic on your network, broadcasting on or off, they will get your ssid by capturing one of your packets. No need to decode it.

I don't use wpa_supplicant, so I can't help you. But in /etc/conf.d/wireless, you have a force_preferred_ap setting, with that, the nic sets each ssid in the list and tries to connect. There's probably such a setting in wpa_supplicant too (or are you using the same config with wpa_supplicant too? worth checking)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed May 17, 2006 2:44 pm    Post subject: Reply with quote

leguaan wrote:
because people who are for example waiting for a bus, and run network scanning, won't find it... I don't know, it wasn't my decision... Is it possible to make it work with hidden id?


It is .... try ap_scan=2
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum