Login
You're viewing the ruby.social public feed.
  • Nov 23, 2026, 2:05 AM

    why in A.D. 2026 are OpenBSD and Haiku the only OSes where you can join a wifi network directly from `ifconfig` without having to know what a "supplicant" is

    screenshot of a Haiku terminal window showing commands to join a wifi network from the command line:

~> ifconfig /dev/net/iaxwifi200/0 up
~> ifconfig /dev/net/iaxwifi200/0 join "redacted" "redacted"
~> ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=51 time=8.481 ms
    💬 12🔄 41⭐ 55

Replies

  • 💬 0🔄 0⭐ 4
  • Nov 23, 2026, 3:15 AM
    does it persist across reboots on either? if so im sold
    💬 1🔄 0⭐ 0
  • Nov 23, 2026, 3:23 AM

    @swirly in OpenBSD yes if you set up the credentials in /etc/hostname.if for the device. in haiku it seems to have just recently as of today’s nightly started remembering the wifi network across reboots

    💬 1🔄 0⭐ 1
  • 💬 0🔄 0⭐ 0
  • Nov 23, 2026, 4:33 AM

    @swirly @joe It actually "remembered" for a while, the recent fix added a missing internal notification so that the auto join logic would run on drivers on the OpenBSD stack (the drivers running on the FreeBSD stack got other fixes a while back.) "iaxwifi200" is a port of an OpenBSD driver, hence it's affected.

    💬 0🔄 0⭐ 1
  • Nov 23, 2026, 2:21 PM

    @swirly

    At least for OpenBSD, you have to persist the settings in your /etc/hostname.${INTERFACE} file if you want it to be available after a reboot. But setting it there means you can restart networking and have ifconfig pick it up from there without re-transcribing the credentials on the command-line (and risking the possibility that they end up in your ~/.history type files).

    # cat > /etc/hostname.athn0 <<EOF
    join GumnosHomeNetwork wpakey "5uP3r53cr3tPa55w0rd"
    join DayjobNetwork wpakey "monkey"
    inet autoconf
    inet6 autoconf
    EOF

    # sh /etc/netstart

    (and similarly to @joe's opening observation, OpenBSD's ifconfig is one of the few that also is smart enough to acquire DHCP/SLAAC info without running a separate dhclient or slaacd type helper)

    💬 1🔄 1⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 25, 2026, 1:10 PM

    @wwr

    Yeah, I think you're right that it uses slaacd/dhcpleased under the hood, but as I understand it, you can use `ifconfig $INTERFACE inet autoconf inet6 autoconf` and ifconfig does all the work so you don't have to care about the underpinning utilities 🙂

    @swirly @joe

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 3
  • 💬 0🔄 0⭐ 0
  • Nov 23, 2026, 3:35 AM

    @joe
    Solaris and illumos are somewhat half-way to there too, but with its own tool (which administrates data links - dladm)

    💬 0🔄 0⭐ 2
  • Nov 23, 2026, 4:36 AM

    @joe because on OpenBSD the net80211 stack in the kernel can do WPA2-PSK without needing wpa_supplicant's help (still need it for Enterprise mode tho), and on Haiku ifconfig is a first party tool and can use private (thus 'unstable" i.e. changed-as-needed) RPCs to talk to the networking daemon and spawn wpa_supplicant or access the system keystore

    💬 0🔄 0⭐ 2
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 23, 2026, 2:21 PM

    @joe

    nmcli con add type wifi con-name 'home wifi' ifname wlan0 ssid "Linux Loves You" wifi-sec.key-mgmt wpa-psk wifi-sec.psk 's3cr3t__'
    nmcli con up 'home wifi'

    But what you have shown still beats it :)

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 23, 2026, 5:49 PM

    @joe @ricardo Note self: next laptop will be running OpenBSD

    (After running OpenBSD for 10 years of as my firewall on a cheap PC, since supplanted by built-for-purpose networking gear)

    💬 0🔄 0⭐ 0
  • Nov 28, 2026, 10:56 AM

    @joe does that mean it does all that extra stuff in the kernel instead? Doesn't seem ideal from a security/complexity POV IMO

    💬 1🔄 0⭐ 0
  • Nov 28, 2026, 4:44 PM

    @Darius OpenBSD does some level of WPA in kernel, but then its ifconfig also sets up slaacd/dhcpcd if necessary when you ask it to autoconf an interface. similarly haiku has (aiui) the usual userland wpa_supplicant, but its ifconfig is also capable of setting up services as needed for the requested config

    💬 0🔄 0⭐ 0