Skip to content

Instantly share code, notes, and snippets.

@wale
Last active February 21, 2024 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wale/9df5209aed39657130d5fab7b46e8da3 to your computer and use it in GitHub Desktop.
Save wale/9df5209aed39657130d5fab7b46e8da3 to your computer and use it in GitHub Desktop.
Merri-bek Libraries NetworkManager configuration

This is a NetworkManager configuration for Merri-Bek Libraries' Wi-Fi network for Linux devices.

Why your device may not work

Merri-bek Libraries utilises Opportunistic Wireless Encryption, a WiFi protocol extension, to secure their open network.

While I support the security measures that this library has taken, this is at the tradeoff that (most) iOS devices, and some Linux devices do not support the OWE extension out of the box.

Supported Devices (for OWE, not the NM configuration)

  • Windows 10 2004 or later, including all versions of Windows 11, with a supported adapter. ([1])

  • macOS 13 or later ([2])

    • Only supported on a few devices:
      • Apple Mac Studio (2022)
      • Macbook Pro M1 (14 inch, 16 inch)
      • Macbook Air M2 (15 inch)
      • Macbook Pro M2 (14 inch, 16 inch)
      • Mac Mini (2023)
      • Mac Studio (2023)
      • Macbook Air M2 (2022)
  • Linux devices running NetworkManager 1.24 and above, with a supported adapter. ([3])

How to use the configuration

This assumes systemd is installed.

  1. Copy the above configuration to /etc/NetworkManager/system-connections/Merri-Bek.nmconnection.
  2. Change the SSID to any Merri-bek library:
    • Known SSIDs are:
      • BTL_Merri-Bek_Free_WiFi: Brunswick Library
      • CBL_Merri-Bek_Free_WiFi: Coburg Library
      • For any other Merri-bek library, refer to the SSID in the WiFi scan list.
  3. Make sure the permissions are set to the running user: sudo sed s/<your user>/$(whoami)/g /etc/NetworkManager/system-connections/Merri-Bek.nmconnection
  4. Assign the .nmconnection file the correct permissions:
    sudo chmod 0600 /etc/NetworkManager/system-connections/Merri-Bek.nmconnection
    sudo chown root:root /etc/NetworkManager/system-connections/Merri-Bek.nmconnection
  5. Reload the NetworkManager service: sudo systemctl restart NetworkManager
  6. Connect!
[connection]
id=Merri-Bek Brunswick
uuid=c0f6e8eb-cedf-4f95-ade0-6cc39fbd27df
type=wifi
permissions=user:<your user>:;
[wifi]
mode=infrastructure
ssid=BTL_Merri-Bek_Free_WiFi
[ipv4]
method=auto
[ipv6]
addr-gen-mode=stable-privacy
method=auto
[proxy]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment