1

I recently discovered that netplan can manage hostapd accesspoints, but this is the extent of the example config:

    wlp1s0:
      access-points:
        "guest":
           mode: ap
           # no WPA config implies default of open

I can find no other documentations of how to define other settings like WPA security and passphrase. I need the following hostapd.conf settings defined and EAP in the future as well:

interface=wlo1
bridge=br0
hw_mode=g
channel=0
ieee80211d=1
country_code=AE
ieee80211n=1
wmm_enabled=1

ssid=SSID
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK 
rsn_pairwise=CCMP
wpa_passphrase=*********

I am aware netplan requires NetworkManager for access point configuration, and I don't know if keeping the bridge managed by networkd will hinder the bridging. If possible, please clarify this point as well.

  • Is this perhaps what you're looking for? I believe it lists all the possible arguments and defaults for netplan. – anvoice Aug 19 at 21:25
  • @anvoice, do you mean to say key-management and psk are the only thing from hostapd.conf I can define on netplan? – Oxwivi Aug 20 at 9:48
  • I'm not a Linux guru, so I could be wrong on this, but the documentation claims that defining an AP using netplan creates an AP using hostapd. Wouldn't that mean it using your hostapd.conf file internally, thus defining the proper channel, etc.? – anvoice Aug 20 at 19:42
  • @anvoice, yes it most definitely does, but if I can't modify them, I need to at least know the defaults. Plus, its apparent inability to do things like add EAP controllers means it's pretty much useless save for the most basic operations. – Oxwivi Aug 21 at 6:22
0

According to the manpage, AP is only supported with the NetworkManager renderer. You should have a line in the netplan that tells it to use NetworkManager for the configuration of that device, then configure it there.

wlp1s0:
  access-points:
    "guest":
       mode: ap
       renderer: NetworkManager
  • Yes, I know, that's I said in my last line. What I want to ask is how to configure it, how do I set the passphrase, operating modes, etc. What are the defaults? – Oxwivi Aug 19 at 6:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.