Skip to content

Instantly share code, notes, and snippets.

@gearhead
gearhead / gist:618c1d7252a15795d0aa1cf4fa6b346b
Created December 26, 2023 12:35
how to hack wg-quick to work with systemd-resolved
Or "Make wg-quick not dependent on resolvconf"
This is a hack. No guarantees. IMO, this script should test to see if systemd-resolved is being used (if this is so
'resolvectl --version' will respond) and if not use the resolvconf command.
When this hack is done, wg-quick will work with NetworkManager cleanly as well.
No need for openresolve if you are using systemd-resolved
find this section of /usr/bin/wg-quick and find these lines:
@gearhead
gearhead / gist:1941ae3a0efcf219efa97de7be2e9bc2
Created December 26, 2023 12:08
How to use iwd ap mode instead of hostapd/dnsmasq for RPi wireless config
Previously using hostapd/dnsmask to have the RPi boot up in AP mode so that it can be configured.
iwd is faster and smoother than hostapd. I was getting kicked off before I could configure the RPi
This capability has been in iwd since 2022
connman can be used with iwd in tethering mode, but this does not allow for any configuration of the AP.
Another way is to use iwd in ap mode on a virtual nic.
I got my ideas from here:
https://lore.kernel.org/linux-wireless/87k0dhdg0d.fsf@bang-olufsen.dk/