are you certain that you upgraded your userland packages after upgrading? wireguard-tools is critical to update in 7.4 (I think due in part to the wgdescr field being added, which is a sorely missing field imo) (for what its worth, I ran into the same problem, specifically because I’d typo’d pkg_add and didnt pay attention until things stopped working. Doh.)
if you want to convert to the ifconfig syntax (away from using wg0.conf), you can put your peers in /etc/hostname.wg0 - Solene’s post about it covers how to do that. https://dataswamp.org/~solene/2021-10-09-openbsd-wireguard-exit.html the gist: PUBKEY=PASTE_PUBKEY_HERE PRIVKEY=$(openssl rand -base64 32) cat <<EOF > /etc/hostname.wg0 wgkey $PRIVKEY wgpeer $PUBKEY wgaip 192.168.10.0/24 inet 192.168.10.1/24 wgport 4433 up EOF you can have multiple wgpeer lines. look at the wireguard entries in "man ifconfig" for more info. > On Oct 22, 2023, at 8:56 AM, Pierre Peyronnel <pierre.peyron...@gmail.com> > wrote: > > Hi there, > > Since upgrading from 7.3 to 7.4 my wireguard setup stopped working. > Now, it might be me. Still here's what I have. > > Stripping down wg0.conf, I have this message as soon as I add a [Peer] > section and its public key: > > bsd# cat /etc/wireguard/wg0.conf >> >> [Interface] >> PrivateKey = (hidden by me) >> ListenPort = 51820 >> >> [Peer] >> PublicKey = (hidden by me) >> #PresharedKey = (hidden by me) >> #AllowedIPs = 10.x.x.10/32 >> > > >> # wg setconf wg0 /etc/wireguard/wg0.conf >> Unable to modify interface: Address family not supported by protocol family >> > > Trying to set it up manually, I get the following result: > >> bsd# ifconfig wg0 wgpeer '(hidden by me)' wgpsk '(hidden by me)' wgaip >> '10.x.x.10/32' >> bsd# wg >> interface: wg0 >> public key: (hidden by me) >> private key: (hidden) >> listening port: 51820 >> >> peer: (hidden by me) >> preshared key: (hidden) >> allowed ips: (none) >> > > I see no way of setting the AllowedIPs anymore. > I did not see any change in 7.4 that cloud explain the behaviour or require > a change in my configuration > I'd be grateful for feedback. > > Thanks ! > Pierre