On Sunday, August 02, 2015 1:29:50 PM Mick wrote: > 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.
It looks like that, but if I stop iptables completely on the router all unicast traffic still works in the lan (both wired and through an external AP), so if I connect to the hostapd AP with iptables off, shouldn't I at the very least be able to ping the wireless interface on the router? I also tried with only the following rule which enables internet access to all wired workstations and through external AP: iptables -t nat -A POSTROUTING -o enp0s8 -j MASQUERADE > > 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. I did, same error. But I found that this is an issue with mac80211 based drivers, they can only be set to master mode through the nl80211 interface which is what hostapd uses. So from what I understand, as long as iw list shows AP mode I'm good and the ebuild warning is outdated. I believe you just net to enable the netlink use flag (which I did) for it to work. http://linuxwireless.org/en/users/Documentation/hostapd/ Thanks, -- Fernando Rodriguez