/srv/irclogs.ubuntu.com/2024/04/22/#netplan.txt

Jakdaw_Can anyone advise on more complicated WPA setups? I need to connect to an institution whose AP certificates are signed by a public CA - so I need to do some validation of the AP CN. wpa_supplicant has an option "domain_suffix_match" to do this - but I'm not clear how to describe that in netplan YAML09:50
slyonJakdaw_: can you give some more details of your setup? What operating system and version are you using? Are you trying to implement it on Netplan's networkd or NetworkManager backend?09:54
Jakdaw_Ubuntu 22.04 with systemd-networkd09:56
slyonOk. So the "domain_suffix_match" is not natively supported by Netplan/networkd. But it would configure the underlying wpa_supplicant for you (without this specific setting). I wonder if there's some way to append/extend the generated wpa_supplicant.conf10:07
Jakdaw_Any idea how one makes a feature request?10:14
slyonJakdaw_: https://bugs.launchpad.net/netplan/+filebug (choose priority:whishlist)10:14
Jakdaw_so that we might have it for Ubuntu 26.04 <sigh>10:14
slyonI guess the best workaround I can come up with right now would be to create a systemd drop-in config:10:15
slyonE.g. /etc/systemd/system/netplan-wpa-netplan_id.service.d/override.conf10:16
slyonthat starts wpa_supplicant for the specific Netplan interface, taking /run/systemd/system/netplan-wpa-NETPLAN_ID.service as an example10:16
slyonthe override.conf should contain something like this:10:16
slyon[Service]10:18
slyonExecStart= # clear old ExecStart= line10:18
slyonExecStart=/sbin/wpa_supplicant -c /etc/netplan/wpa-custom.conf -iIFACE -Dnl80211,wext10:18
slyonThen copying /run/netplan/wpa-NETPLAN_ID.conf to /etc/netplan/wpa-custom.conf and modifying it the way you need it10:18
slyonJakdaw_: Is this an Ubuntu Server or Ubuntu Desktop system?10:19
slyonIf using Ubuntu Desktop, you might consider using Netplan's NetworkManager backend instead. Which does not natively support "domain-suffix-match" either, but has native "passthrough" support: https://netplan.readthedocs.io/en/stable/netplan-yaml/#properties-for-device-type-nm-devices10:21
slyonSo you could keep it all in your netplan YAML configuraiton.10:21
Jakdaw_it was installed as Ubuntu Server but has Desktop stuff installed on top; though not NM as I've always thought that awful10:24
slyonfair enough. The networkd workaround described above is a bit more cumbersome, but should work.10:25
Jakdaw_that said - the bodge for systemd-networkd would also be awful - given that it's not the only AP that I use this network device to connect to; so I'd probably want netplan to generate a config and then have the override service dynamically modify it - rather than replacing it with something static10:26
slyonJakdaw_: I like the idea! It's a bit more involved, but should also work. Unfortunately, wpa_supplicant doesn't have an override/drop-in config mechanism similar to systemd itself.10:28

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!