You are not logged in.

#1 2011-10-25 11:51:55

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 227
Website

[Solved] Unable to create an access point with hostapd and dnsmasq

Hi everyone, I literally spent yesterday about 6 hours of trying to get an access point run from my laptop and make it at the same time a file server or so. In fact I 've been trying to first make my laptop an access point, lease IPs through a DHCP server, route packets across the connected clients and then if that becomes successful do something like connectify for Windows, such as a repeater.

lspci -nn | grep Atheros:

00:09.0 Ethernet controller [0200]: Atheros Communications Inc. AR5413 802.11abg NIC [168c:001b] (rev 01)

That's a pretty good chip to me!

lsmod | grep ath

ath5k             129050  0 
ath                 11991  1 ath5k
mac80211     192876  1 ath5k
cfg80211       140636  3 ath5k,ath,mac80211

cat /etc/hostapd/hostapd.conf

interface=wlan0
#bridge=br0 #this is optional isn't it? I dont like to bridge any interface for the moment
driver=nl80211
logger_stdout=-1
logger_stdout_level=2
ssid=Twilight-Zone
hw_mode=g
channel=4
auth_algs=3
max_num_sta=5
wpa=1
wpa_passphrase=12345678 #;-)
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP

egrep -v "^#|^$" /etc/dnsmasq.conf

resolv-file=/etc/resolv.conf.custom
interface=wlan0
interface=lo
expand-hosts
domain=google.com
dhcp-range=192.168.2.10,192.168.2.20,255.255.255.0,24h

I think I have to configure some interface in static mode first to get an IP right? But if I set a wireless netcfg profile, the card is set back to managed mode and connected to my unsecured testing network I have from a spare Linksys modem/router.

So far I only managed to create the actual access point but when a client requests a lease for an IP, connection fails.

Last edited by twilight0 (2011-11-20 08:04:58)


Proud Arch Linux user since 2007.

Offline

#2 2011-10-26 08:24:39

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 227
Website

Re: [Solved] Unable to create an access point with hostapd and dnsmasq

No answer... do I need to provide some more information and/or logs ladies and gentlemen? Am I doing something wrong and not set up completely the dnsmasq?


Proud Arch Linux user since 2007.

Offline

#3 2011-11-20 07:43:54

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 227
Website

Re: [Solved] Unable to create an access point with hostapd and dnsmasq

Solved... I missed a much importand step...:

ifconfig wlan0 192.168.2.1 netmask 255.255.255.0


Proud Arch Linux user since 2007.

Offline

Board footer

Powered by FluxBB