Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Aug 2011 12:17:47 +1000
From:      Jason <datastorm01@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: wireless access point in FreeBSD 8.2p2
Message-ID:  <4E59A54B.1010704@gmail.com>
In-Reply-To: <51754C95-3688-4B33-BD98-7DED5F28DC0E@gmail.com>
References:  <51754C95-3688-4B33-BD98-7DED5F28DC0E@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig936993DE2CFA61C46D253DB0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 08/28/11 02:21, Paul Beard wrote:
> I seem to be missing something, possibly from reading too many HOWTOs. =
What I am trying to do is get a system with a wireless card to stand in a=
s a wireless AP should my aging LinkSys base station develop a tragic smo=
ke leak.=20
>
> It's an ath0-based card and the following steps suggest it should work =
(it has HOSTAP capabilities and offering robust encryption).=20
>
> ifconfig wlan0 create wlandev ath0
> ifconfig wlan0 list caps
> drivercaps=3D6f85ed41<STA,FF,IBSS,HOSTAP,AHDEMO,TXPMGT,SHSLOT,SHPREAMBL=
E,MONITOR,MBSS,WPA1,WPA2,BURST,WME,WDS,BGSCAN,TXFRAG>
> cryptocaps=3Df<WEP,TKIP,AES,AES_CCM>
>
> But various permutations of rc.conf, hostap.conf and many iterations of=
 /etc/rc.c/netif restart leave me with two ifconfig entries, one of the a=
th0 interface and one for wlan0. None of the examples show this so I susp=
ect it's wrong. The IP address is pingable from the host it's installed i=
n but not from anywhere else. And I can see the AP from another system an=
d attach to it but it doesn't route any traffic.=20
>
> from /etc/rc.conf:=20
> wlans_ath0=3D"wlan0"
> create_args_wlan0=3D"wlanmode hostap"
> ifconfig_wlan0=3D"inet 192.168.0.26 netmask 255.255.255.0 ssid lower mo=
de 11g channel 8"
>
> from hostap.conf:=20
> interface=3Dwlan0
> debug=3D1
> ctrl_interface=3D/var/run/hostapd
> ctrl_interface_group=3Dwheel
> ssid=3Dlower
> wpa=3D0
>
> redacted results of ifconfig:=20
> ath0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu=
 2290
> 	ether 00:0d:88:93:21:3a
> 	media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
> 	status: running
>
> wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mt=
u 1500
> 	ether 00:0d:88:93:21:3a
> 	inet 192.168.0.26 netmask 0xffffff00 broadcast 192.168.0.255
> 	inet6 fe80::20d:88ff:fe93:213a%wlan0 prefixlen 64 scopeid 0x7=20
> 	nd6 options=3D3<PERFORMNUD,ACCEPT_RTADV>
> 	media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
> 	status: running
> 	ssid lower channel 8 (2447 MHz 11g) bssid 00:0d:88:93:21:3a
> 	regdomain FCC indoor ecm authmode AUTO privacy OFF txpower 27
> 	scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs
>
> Yes, I am trying it without any encryption until I see some packets bei=
ng passed.=20
>
> It seems like a lot of people are getting this to work but I'm not able=
 to follow how they did it.=20
> --
> Paul Beard
>
> Are you trying to win an argument or solve a problem?=20
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd=
=2Eorg"

8.2 RELEASE p2 (ath card, works dhcp wpa)

#      /etc/rc.conf
        wlans_ath0=3D"wlan0"
        ifconfig_wlan0=3D"WPA DHCP"

#      /etc/wpa_supplicant.conf
ctrl_interface=3D/var/run/wpa_supplicant
network=3D{
        ssid=3D"BigPond455FC2"
        key_mgmt=3DWPA-PSK
        proto=3DWPA
        psk=3D"B104264B61"
}


I hope this helps
jason


--------------enig936993DE2CFA61C46D253DB0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)

iQIcBAEBAgAGBQJOWaVUAAoJEK9LZutYluD21hYP+QGkAAr9fHWrP9fusJ3rhoMg
D3CbcrAFz3+9lJUsBNWVK5Ez1DrPt4aDfIbX+e4bxyBqDWm0OTFtuQXCY4EjZFZo
eaugbHvXD05/ys9lTc54jHru3wioF6yoGvqh6crB4yUOIxZUmRZ2Go8REdh98G+X
CPWjKTtPvFCFPgTffgsHcozN3gyAnGXUM6GxqpTGcAMDgcrVrGhlrg+8KuXGo51J
MN8Ld+7/L5/euqYQ5hXf2zwphInVZkNeTznFhUZwqBd5kyLeq06lE5nlWHuC8s8O
8Zwu5O8RAINQWdUMozguwdU1kxyGELcNuVG+f/2Wvvq4O0eQZd45LBp0fJSaFWBF
NdYU4+yfuT3afzOhMNCyovrfjIxXItq+1R7iHEQIU7gMP3HvvxzorahCfEt9XLRB
gG3h7qaZc4B6IlvjNEePMDZF2EEWBiXp64pviu/qOyG0v01ASnCEdTkega486TFZ
bkjhuywmwVINqZDFOmF/YABpO9X5oz2+jsa1MlPGcN7qTiGO15Hy9Bi8YqlWTwU8
f2QOd+pJI8G6Z020Btuo1jCICOxgPxlmllSWuzUlY5tfV3K2NSmhUHFRqPOmuZdy
Usta7PbdzktdCa3OYe2YyL3H9f7gCyZTszKkJlJPJRAk033sVwc1k7b2NGzwiaq9
tjTICUnokMrg6k0hXOT+
=HaQ0
-----END PGP SIGNATURE-----

--------------enig936993DE2CFA61C46D253DB0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E59A54B.1010704>