On Sunday 02 Aug 2015 01:50:21 Fernando Rodriguez wrote:
> Hello,
> 
> After installing hostapd I can successfully connect to the AP, I can get
> DHCP from it, but I cannot access the network through it (neither lan or
> internet). 

This sounds like a (network) routing problem, rather than a hostapd issue.


> This is an existing router box so iptables and everything else
> is already properly configured.
> 
> I'm using this minimal config:
> 
> interface=wlp0s10
> #driver=nl80211
> hw_mode=g
> channel=6
> #ieee80211d=1
> #country_code=FR
> #ieee80211n=1
> #wmm_enabled=1
> 
> ssid=LinuxAP
> auth_algs=1
> wpa=2
> wpa_key_mgmt=WPA-PSK
> rsn_pairwise=CCMP
> wpa_passphrase=hello linux ap
> 
> iw list shows the following supported modes:
> * IBSS
> * managed
> * AP
> * AP/VLAN
> * monitor
> 
> The ebuild warns that in order for hostapd to work I need to set the card
> in master mode (the wiki makes no mention of it). 

I think this is a matter of nomenclature.  Your AP & AP/VLAN would/should be 
the equivalent to master mode.


> But when I try to do
> that (either through the net init scripts or through iwconfig) I get the
> following error:
> 
> Error for wireless request "Set Mode" (8B06) :
>     SET failed on device wlp0s10 ; Invalid argument.

Did you try setting it up as AP, or AP/VLAN to see if it works?  In the latter 
you will also need to setting a route for the AP VLAN to access the default 
(V)LAN and Internet.



> However after starting hostapd it appears that it was able to set the card
> to master mode according to iwconfig:
> 
> wlp0s10   IEEE 802.11bg  Mode:Master  Tx-Power=20 dBm
>           Retry short limit:7   RTS thr:off   Fragment thr:off
>           Power Management:off

What mode is shown if you use AP or AP/VLAN?


> So, is this card supported or not? Will I be able to connect and get dhcp
> from the server if it didn't? 

I believe that your card is supported for hostapd use, or otherwise you would 
not be able to get a dhcp address from the server.


> Avahi also _sortof_ works. If I add the wifi
> card to the deny-interfaces list on avahi-daemon.conf and try to ping the
> AP using the avahi name the avahi daemon (on the AP) logs the following:
> 
> Received packet from invalid interface.
> 
> 
> This is the output of rc-service hostapd start:
> 
> Configuration file: /etc/hostapd/hostapd.conf
> Using interface wlp0s10 with hwaddr 00:14:a5:cb:4d:8a and ssid "LinuxAP"
> wlp0s10: interface state UNINITIALIZED->ENABLED
> wlp0s10: AP-ENABLED         [ ok ]
> 
> 
> Any suggestions?

Check that your routing is set up to allow connections from your client IP 
through the network of the AP.

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to