0

So I had been working on a project that is able to setup an Access Point and redirect traffic through another interface (can be wired or wireless).

Now there have always been issues between hostapd and wpa_supplicant, I needed to create an access point on one wireless interface and route it through another wireless interface. But while that interface is managed by network-manager hostapd is unable to start an access point on that interface.

Ways to work around: I can run these commands and kill wpa_supplicant

sudo nmcli nm wifi off
sudo rfkill unblock wlan

But this turns off all wireless interfaces and I need one connected to the internet so I can route the traffic.

Another work around, which I used and is a lot more elegant: adding this line to the NetworkManager.conf file

[keyfile]
#unmanaged-devices=mac:d8:5d:4c:9a:72:60

This actually worked flawlessly! Until a recent update of hostapd to version 1:2.5-2+v2.4-3

Are there any other workarounds so that my wireless interface is not managed by wpa_supplicant?

I'm running Kali Linux.

Esser420
  • 780
  • 1
  • 8
  • 19

1 Answers1

0

Okay so for anyone having the same issue, you can also add

[keyfile]
unmanaged-devices=mac:d8:5d:4c:9a:72:60, ,interface-name:wlan1

that 'interface-name' option solves the problem!

Esser420
  • 780
  • 1
  • 8
  • 19