You are not logged in.

#1 2011-07-17 20:07:23

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Trying to set up a wireless Access Point.

The piece of hardware in question is aD-Link DWA-160.  It is a USB Adaptor.

iwconfig:

wlan0     IEEE 802.11abgn  Mode:Master  Frequency:2.412 GHz  Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          
mon.wlan0  IEEE 802.11abgn  Mode:Monitor  Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
wireless access point usb

ifconfig:

mon.wlan0 Link encap:UNSPEC  HWaddr XXXXXXXXXXXXXXXXXXXXXXXXXXX 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2488 (2.4 Kb)  TX bytes:0 (0.0 b)

wlan0     Link encap:Ethernet  HWaddr XXXXXXXXXXXXX  
          inet addr:10.0.0.65  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::16d6:4dff:fea8:400b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:244 errors:0 dropped:9 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27821 (27.1 Kb)  TX bytes:9221 (9.0 Kb)

For a starter, I set no encription, static IP.

I can see the wireless AP from my laptop with iwlist.  When I try do iwconfig wlan0 essis "blackhole" nothing happens.

Offline

#2 2011-07-17 22:27:47

chapet
Member
Registered: 2008-05-11
Posts: 16

Re: Trying to set up a wireless Access Point.

Assuming that your ESSID:"blackhole"

wpa_passphrase blackhole "your_password" > blackhole.passw
iwconfig mon.wlan0 essid blackhole
wpa_supplicant -B -imon.wlan0 -cblackhole.passw
dhcpcd mon.wlan0

Change blackhole.passw permissions accordingly to your security needs

Last edited by chapet (2011-07-17 22:29:28)

Offline

#3 2011-07-18 00:30:49

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: Trying to set up a wireless Access Point.

@chapet,  as per the wiki, since I am not using encryption at the moment, I am using

iwconfig wlan0 essid "blackhole"

Yet, no SSID is assigned on my laptop

Offline

#4 2011-07-18 07:35:40

chapet
Member
Registered: 2008-05-11
Posts: 16

Re: Trying to set up a wireless Access Point.

@marxav, you are right.
I've tried it this morning and it didn't work, it used to though.  I just haven't had the need to use it in a long time.
Could anybody else confirm whether this is working or not.

Offline

#5 2011-07-18 23:35:10

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: Trying to set up a wireless Access Point.

Thanks @chapet.
I also read that if the AP does not broadcast the essid, of course you will not be able to associate to it.  But I can see it on "iwlist scan".

Offline

#6 2011-07-19 08:41:34

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Trying to set up a wireless Access Point.

Of course you are able to associate to such an AP. What would be the point of a hidden ESSID if nothing could connect to it? That said, there actually isn't a point to a hidden ESSID. It's not *really* hidden, it contributes nothing to security. All it does is cause problems with flaky Linux drivers.

Offline

#7 2011-07-19 18:35:14

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Trying to set up a wireless Access Point.

I have the same USB dongle as you are using, and I installed arch yesterday.  I got my usb nic to work with netcfg and the wireless-wep example config found in /etc/network.d/examples. 

Short version, yes the nic works in linux very well.  I suggest you try netcfg or wicd to get it working.  As long as ifconfig -a shows you have wlan0 you're good to go.

Edit: forgot to say that a lot of nic's (usb ones especially in my experience) do not handle hidden ESSID's well.  And the poster above me is, imo, right: they don't do much good as a security measure.  You're better off configuring WPA2.

Last edited by MoonSwan (2011-07-19 18:36:42)

Offline

#8 2011-07-19 19:04:14

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: Trying to set up a wireless Access Point.

@moonswan.
Do you use that usb dongle to connect TO or to connect FROM?
I am confused.  My laptop has wicd installed.  I can connect no problem to my linksys router through wicd.
So with that same laptop, if I want to connect to my d-link usb access point (which is on my Arch Router), I would have to setup netcfg??  Why would wicd not work or even througn manual mode

Offline

#9 2011-07-20 01:29:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: Trying to set up a wireless Access Point.

marxav wrote:

When I try do iwconfig wlan0 essis "blackhole" nothing happens.

As a sanity check, you might check two things. 
1. There is a typo in that command.  Is it verbatim, or is essis a typo when you posted?
2. ESSIDs are case sensitive.  You might check against the actual ESSID reported by iwlist.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2011-07-20 16:28:44

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: Trying to set up a wireless Access Point.

@ewaller.  Thanks.  I am not in front of my laptop at the moment, but I am convinced I used iwconfig wlan0 essid "blackhole".  I would hope iwconfig would throw an error have I used "essis".  To confirm, I shall try tonight. 

In any case, I tried netcfg, now it connects.  Or at least I get an essid, but I have no route to host.

There is at least this.

┌marst@myhost)───(13:21 Wednesday 20 - July 2011)
├─(~)
└──> iwconfig wlan0 essis blabla
iwconfig: unknown command "essis"

And the command iwconfig wlan0 essid myrouteressid definitely does nothing...

Last edited by marxav (2011-07-20 21:24:41)

Offline

Board footer

Powered by FluxBB