netplan: can't login to ap mode with psk

Bug #1893563 reported by shemgp on 2020-08-30
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NetworkManager
Unknown
Unknown
network-manager (Ubuntu)
Medium
Unassigned

Bug Description

I've setup my wifi cards as ap over a bridge using netplan.
If I add:

auth:
  key-management: psk
  password: "testinglang"

then my clients are unable to connect.
If I remove those lines above in netplan then the clients are able to connect but without a password.

If I run wpa_cli -i wlp3s0 status, I get:

bssid=4c:1d:96:71:a3:90
freq=2412
ssid=walad2
id=0
mode=AP
pairwise_cipher=CCMP+TKIP
group_cipher=TKIP
key_mgmt=UNKNOWN
wpa_state=COMPLETED
p2p_device_address=4c:1d:96:71:a3:91
address=4c:1d:96:71:a3:90
uuid=85d86b40-7e3d-5fc5-b5fc-aae9af55b29a

I notice that key_mgmt=UNKNOWN. Perhaps that's the problem?

Any pointers on how to debug and fix this?

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: netplan.io 0.99-0ubuntu3~20.04.2
ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
Uname: Linux 5.4.0-42-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.8
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sun Aug 30 23:11:48 2020
InstallationDate: Installed on 2020-08-16 (14 days ago)
InstallationMedia: Ubuntu-Server 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: netplan.io
UpgradeStatus: No upgrade log present (probably fresh install)

shemgp (shemgp) wrote :
shemgp (shemgp) wrote :

Here's my netplan config.

shemgp (shemgp) wrote :

I just that my uploaded config was wrong. Here's the correct one.

shemgp (shemgp) wrote :

Turns out NM can't make AP under bridge because it's not passing BridgeIfname: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/83

shemgp (shemgp) wrote :

The attachment "Patch to pass BridgeIfname to wpa_supplicant" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Mathew Hodson (mhodson) on 2020-09-25
affects: netplan.io (Ubuntu) → network-manager (Ubuntu)
Mathew Hodson (mhodson) on 2020-09-25
Changed in network-manager (Ubuntu):
importance: Undecided → Medium
Sebastien Bacher (seb128) wrote :

could you do a merge request upstream for your change?

Sebastien Bacher (seb128) wrote :

Updating the bug since it seems that has been proposed for merging now

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/638

Changed in network-manager (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.