On 2026/05/12 23:29, Gabriele Vento wrote:
> >Synopsis:      Wireguard doesn't seem to work on macppc (at least when
> trying to connect to CGHMN)
> >Category:      powerpc
> >Environment:
>         System      : OpenBSD 7.8
>         Details     : OpenBSD 7.8 (GENERIC) #13: Fri Oct 10 13:14:53 MDT
> 2025
>  [email protected]:/usr/src/sys/arch/macppc/compile/GENERIC
> 
>         Architecture: OpenBSD.macppc
>         Machine     : macppc
> >Description:
>         I am trying to connect to a VPN (https://cghmn.org) through
> wg-quick from a iBook G3 running OpenBSD 7.8, but it does not seem to
> work.
>         It first of all for some reason replaces the last field of
> AllowedIps with `/0`, and also just doesn't work.
> >How-To-Repeat:
>         - Write to /etc/wireguard/wg-conf.conf the following lines
> (replacing the bracketed terms)

Does it work if you configure it with ifconfig(8) rather than the
third-party tool?


>                 [Interface]
>                 Address = <addres>/32
>                 PrivateKey = <privatekey>
>                 DNS = 100.64.12.2
>                 MTU = 1300
> 
>                 [Peer]
>                 PublicKey = k/QiJIbMakMKgTCHVt8/D+8k4DzRVM6U33F3gMZfRUg=
>                 AllowedIPs = 100.64.0.0/10
>                 Endpoint = us.wg.cghmn.org:42070
>                 PersistentKeepalive = 15
>                 PresharedKey = <presharedkey>
>         - Run `wg-quick up wg-conf`
> 
> dmesg:
> OpenBSD 7.8 (GENERIC) #13: Fri Oct 10 13:14:53 MDT 2025
> [email protected]:/usr/src/sys/arch/macppc/compile/GENERIC
> real mem = 671088640 (640MB)
> avail mem = 630419456 (601MB)
> random: boothowto does not indicate good seed
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root: model PowerBook4,2
> cpu0 at mainbus0: 750 (Revision 0x3311): 600 MHz: 256KB backside cache
> mem0 at mainbus0
> spdmem0 at mem0: SDRAM non-parity PC66
> spdmem1 at mem0: 512MB SDRAM non-parity PC133CL2
> memc0 at mainbus0: uni-n rev 0xc0
> kiic0 at memc0 offset 0xf8001000
> iic0 at kiic0
> mpcpcibr0 at mainbus0 pci: uni-north
> pci0 at mpcpcibr0 bus 0
> pchb0 at pci0 dev 11 function 0 "Apple Pangea AGP" rev 0x00
> agp at pchb0 not configured
> vgafb0 at pci0 dev 16 function 0 "ATI Mobility M3" rev 0x02, mmio
> wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> mpcpcibr1 at mainbus0 pci: uni-north
> pci1 at mpcpcibr1 bus 0
> macobio0 at pci1 dev 23 function 0 "Apple Pangea Macio" rev 0x00
> openpic0 at macobio0 offset 0x40000: version 0x4614 feature 3f0302 LE
> macgpio0 at macobio0 offset 0x50
> macgpio1 at macgpio0: irq 47
> pgs0 at macgpio0: irq 55
> "firewire-linkon" at macgpio0 not configured
> "gpio1" at macgpio0 not configured
> "gpio9" at macgpio0 not configured
> "extint-gpio4" at macgpio0 not configured
> "extint-gpio12" at macgpio0 not configured
> "escc-legacy" at macobio0 offset 0x12000 not configured
> zs0 at macobio0 offset 0x13000: irq 22,23
> zstty0 at zs0 channel 0
> zstty1 at zs0 channel 1
> tumbler0 at macobio0 offset 0x10000: irq 30,1,2
> "timer" at macobio0 offset 0x15000 not configured
> adb0 at macobio0 offset 0x16000: irq 25, via-pmu, 3 targets
> apm0 at adb0: battery flags 0x5, 100% charged
> akbd0 at adb0 addr 2: iBook keyboard with inverted T (ISO layout)
> wskbd0 at akbd0: console keyboard, using wsdisplay0
> ams0 at adb0 addr 3: EMP trackpad <tpad> 2-button, 400 dpi
> wsmouse0 at ams0 mux 0
> abtn0 at adb0 addr 7: brightness/volume/eject buttons
> "battery" at macobio0 offset 0x0 not configured
> "backlight" at macobio0 offset 0xf300 not configured
> kiic1 at macobio0 offset 0x18000
> iic1 at kiic1
> wdc0 at macobio0 offset 0x1f000 irq 19: DMA
> wd0 at wdc0 channel 0 drive 0: <SAMSUNG MP0402H>
> wd0: 16-sector PIO, LBA48, 38204MB, 78242976 sectors
> atapiscsi0 at wdc0 channel 0 drive 1
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <SONY, CD-RW CRX800E, 1.3g> removable
> wd0(wdc0:0:0): using PIO mode 4, DMA mode 2
> cd0(wdc0:0:1): using PIO mode 4, DMA mode 2
> audio0 at tumbler0
> ohci0 at pci1 dev 24 function 0 "Apple Pangea USB" rev 0x00: irq 27,
> version 1.0
> ohci1 at pci1 dev 25 function 0 "Apple Pangea USB" rev 0x00: irq 28,
> version 1.0
> usb0 at ohci0: USB revision 1.0
> uhub0 at usb0 configuration 1 interface 0 "Apple OHCI root hub" rev
> 1.00/1.00 addr 1
> usb1 at ohci1: USB revision 1.0
> uhub1 at usb1 configuration 1 interface 0 "Apple OHCI root hub" rev
> 1.00/1.00 addr 1
> mpcpcibr2 at mainbus0 pci: uni-north
> pci2 at mpcpcibr2 bus 0
> "Apple Pangea FireWire" rev 0x00 at pci2 dev 14 function 0 not configured
> gem0 at pci2 dev 15 function 0 "Apple Pangea GMAC" rev 0x00: irq 41,
> address 00:03:93:6a:1d:74
> bmtphy0 at gem0 phy 0: BCM5221, rev. 4
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> bootpath: /pci@f2000000/mac-io@17/ata-4@1f000/disk@0:/bsd
> root on wd0a (f650c960c8366817.a) swap on wd0b dump on wd0b
> WARNING: / was not properly unmounted
> 
> usbdevs:
> Controller /dev/usb0:
> addr 01: 106b:0000 Apple, OHCI root hub
>          full speed, self powered, config 1, rev 1.00
>          driver: uhub0
> Controller /dev/usb1:
> addr 01: 106b:0000 Apple, OHCI root hub
>          full speed, self powered, config 1, rev 1.00
>          driver: uhub1
> 
> pcidump:
> Domain /dev/pci0:
>  0:11:0: Apple Pangea AGP
>         0x0000: Vendor ID: 106b, Product ID: 0027
>         0x0004: Command: 0016, Status: 0230
>         0x0008: Class: 06 Bridge, Subclass: 00 Host,
>                 Interface: 00, Revision: 00
>         0x000c: BIST: 00, Header Type: 00, Latency Timer: 10,
>                 Cache Line Size: 08
>         0x0010: BAR empty (00000000)
>         0x0014: BAR empty (00000000)
>         0x0018: BAR empty (00000000)
>         0x001c: BAR empty (00000000)
>         0x0020: BAR empty (00000000)
>         0x0024: BAR empty (00000000)
>         0x0028: Cardbus CIS: 00000000
>         0x002c: Subsystem Vendor ID: 0000 Product ID: 0000
>         0x0030: Expansion ROM Base Address: 00000000
>         0x0038: 00000000
>         0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
>         0x0080: Capability 0x02: AGP
>         0x0000: 0027106b 02300016 06000000 00001008
>         0x0010: 00000000 00000000 00000000 00000000
>         0x0020: 00000000 00000000 00000000 00000000
>         0x0030: 00000000 00000080 00000000 00000000
>         0x0040: 00000840 00000000 02000002 00000000
>         0x0050: 00000040 00000000 00000000 00000000
>         0x0060: 00000000 00000000 00000000 00000000
>         0x0070: 00000000 00000000 00000000 00000000
>         0x0080: 00100002 07000203 00000000 00000000
>         0x0090: 00000000 00000000 00000001 00000000
>         0x00a0: 00000000 00000000 00000000 00000000
>         0x00b0: 00000000 00000000 00000000 00000000
>         0x00c0: 00000000 00000000 00000000 00000000
>         0x00d0: 00000000 00000000 00000000 00000000
>         0x00e0: 00000000 00000000 00000000 00000000
>         0x00f0: 00000000 00000000 00000000 00000000
>  0:16:0: ATI Mobility M3
>         0x0000: Vendor ID: 1002, Product ID: 4c46
>         0x0004: Command: 0086, Status: 02b0
>         0x0008: Class: 03 Display, Subclass: 00 VGA,
>                 Interface: 00, Revision: 02
>         0x000c: BIST: 00, Header Type: 00, Latency Timer: ff,
>                 Cache Line Size: 08
>         0x0010: BAR mem prefetchable 32bit addr: 0x94000000/0x04000000
>         0x0014: BAR io addr: 0x00000400/0x0100
>         0x0018: BAR mem 32bit addr: 0x90000000/0x00004000
>         0x001c: BAR empty (00000000)
>         0x0020: BAR empty (00000000)
>         0x0024: BAR empty (00000000)
>         0x0028: Cardbus CIS: 00000000
>         0x002c: Subsystem Vendor ID: 1002 Product ID: 4c46
>         0x0030: Expansion ROM Base Address: 90020000
>         0x0038: 00000000
>         0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 08 Max Lat: 00
>         0x0050: Capability 0x02: AGP
>         0x005c: Capability 0x01: Power Management
>                 State: D0
>         0x0000: 4c461002 02b00086 03000002 0000ff08
>         0x0010: 94000008 00000401 90000000 00000000
>         0x0020: 00000000 00000000 00000000 4c461002
>         0x0030: 90020000 00000050 00000000 000801ff
>         0x0040: 00000000 00000000 00000000 00000000
>         0x0050: 00205c02 1f000203 00000200 06020001
>         0x0060: 00000000 00000000 00000000 00000000
>         0x0070: 00000000 00000000 00000000 00000000
>         0x0080: 00000000 00000000 00000000 00000000
>         0x0090: 00000000 00000000 00000000 00000000
>         0x00a0: 00000000 00000000 00000000 00000000
>         0x00b0: 00000000 00000000 00000000 00000000
>         0x00c0: 00000000 00000000 00000000 00000000
>         0x00d0: 00000000 00000000 00000000 00000000
>         0x00e0: 00000000 00000000 00000000 00000000
>         0x00f0: 00000000 00000000 00000000 00000000
> Domain /dev/pci1:
>  0:23:0: Apple Pangea Macio
>         0x0000: Vendor ID: 106b, Product ID: 0025
>         0x0004: Command: 0016, Status: 0200
>         0x0008: Class: ff (unknown), Subclass: 00 (unknown),
>                 Interface: 00, Revision: 00
>         0x000c: BIST: 00, Header Type: 00, Latency Timer: 10,
>                 Cache Line Size: 08
>         0x0010: BAR mem 32bit addr: 0x80000000/0x00080000
>         0x0014: BAR empty (00000000)
>         0x0018: BAR empty (00000000)
>         0x001c: BAR empty (00000000)
>         0x0020: BAR empty (00000000)
>         0x0024: BAR empty (00000000)
>         0x0028: Cardbus CIS: 00000000
>         0x002c: Subsystem Vendor ID: 0000 Product ID: 0000
>         0x0030: Expansion ROM Base Address: 00000000
>         0x0038: 00000000
>         0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
>         0x0000: 0025106b 02000016 ff000000 00001008
>         0x0010: 80000000 00000000 00000000 00000000
>         0x0020: 00000000 00000000 00000000 00000000
>         0x0030: 00000000 00000000 00000000 00000000
>         0x0040: 00000000 00000000 00000000 00000000
>         0x0050: 00000000 00000000 00000000 00000000
>         0x0060: fffffff3 ffffffff ffffffff ffffffff
>         0x0070: 00000000 00000000 00000000 00000000
>         0x0080: 00000000 00000000 00000000 00000000
>         0x0090: 00000000 00000000 00000000 00000000
>         0x00a0: 00000000 00000000 00000000 00000000
>         0x00b0: 00000000 00000000 00000000 00000000
>         0x00c0: 00000000 00000000 00000000 00000000
>         0x00d0: 00000000 00000000 00000000 00000000
>         0x00e0: 00000000 00000000 00000000 00000000
>         0x00f0: 00000000 00000000 00000000 00000000
>  0:24:0: Apple Pangea USB
>         0x0000: Vendor ID: 106b, Product ID: 0026
>         0x0004: Command: 0006, Status: 0210
>         0x0008: Class: 0c Serial Bus, Subclass: 03 USB,
>                 Interface: 10, Revision: 00
>         0x000c: BIST: 00, Header Type: 00, Latency Timer: 10,
>                 Cache Line Size: 00
>         0x0010: BAR mem 32bit addr: 0x80081000/0x00001000
>         0x0014: BAR empty (00000000)
>         0x0018: BAR empty (00000000)
>         0x001c: BAR empty (00000000)
>         0x0020: BAR empty (00000000)
>         0x0024: BAR empty (00000000)
>         0x0028: Cardbus CIS: 00000000
>         0x002c: Subsystem Vendor ID: 0000 Product ID: 0000
>         0x0030: Expansion ROM Base Address: 00000000
>         0x0038: 00000000
>         0x003c: Interrupt Pin: 01 Line: 00 Min Gnt: 03 Max Lat: 56
>         0x0050: Capability 0x01: Power Management
>                 State: D0
>         0x0000: 0026106b 02100006 0c031000 00001000
>         0x0010: 80081000 00000000 00000000 00000000
>         0x0020: 00000000 00000000 00000000 00000000
>         0x0030: 00000000 00000050 00000000 56030100
>         0x0040: 00000000 00000000 00000000 00000000
>         0x0050: 76020001 26002000 00000000 00000000
>         0x0060: 00000000 00000000 00000000 00000000
>         0x0070: 00000000 00000000 00000000 00000000
>         0x0080: 00000000 00000000 00000000 00000000
>         0x0090: 00000000 00000000 00000000 00000000
>         0x00a0: 00000000 00000000 00000000 00000000
>         0x00b0: 00000000 00000000 00000000 00000000
>         0x00c0: 00000000 00000000 00000000 00000000
>         0x00d0: 00000000 00000000 00000000 00000000
>         0x00e0: 00000000 00000000 00000000 00000000
>         0x00f0: 00000000 00000000 00000000 00000000
>  0:25:0: Apple Pangea USB
>         0x0000: Vendor ID: 106b, Product ID: 0026
>         0x0004: Command: 0006, Status: 0210
>         0x0008: Class: 0c Serial Bus, Subclass: 03 USB,
>                 Interface: 10, Revision: 00
>         0x000c: BIST: 00, Header Type: 00, Latency Timer: 10,
>                 Cache Line Size: 00
>         0x0010: BAR mem 32bit addr: 0x80080000/0x00001000
>         0x0014: BAR empty (00000000)
>         0x0018: BAR empty (00000000)
>         0x001c: BAR empty (00000000)
>         0x0020: BAR empty (00000000)
>         0x0024: BAR empty (00000000)
>         0x0028: Cardbus CIS: 00000000
>         0x002c: Subsystem Vendor ID: 0000 Product ID: 0000
>         0x0030: Expansion ROM Base Address: 00000000
>         0x0038: 00000000
>         0x003c: Interrupt Pin: 01 Line: 00 Min Gnt: 03 Max Lat: 56
>         0x0050: Capability 0x01: Power Management
>                 State: D0
>         0x0000: 0026106b 02100006 0c031000 00001000
>         0x0010: 80080000 00000000 00000000 00000000
>         0x0020: 00000000 00000000 00000000 00000000
>         0x0030: 00000000 00000050 00000000 56030100
>         0x0040: 00000000 00000000 00000000 00000000
>         0x0050: 76020001 26002000 00000000 00000000
>         0x0060: 00000000 00000000 00000000 00000000
>         0x0070: 00000000 00000000 00000000 00000000
>         0x0080: 00000000 00000000 00000000 00000000
>         0x0090: 00000000 00000000 00000000 00000000
>         0x00a0: 00000000 00000000 00000000 00000000
>         0x00b0: 00000000 00000000 00000000 00000000
>         0x00c0: 00000000 00000000 00000000 00000000
>         0x00d0: 00000000 00000000 00000000 00000000
>         0x00e0: 00000000 00000000 00000000 00000000
>         0x00f0: 00000000 00000000 00000000 00000000
> Domain /dev/pci2:
>  0:14:0: Apple Pangea FireWire
>         0x0000: Vendor ID: 106b, Product ID: 0030
>         0x0004: Command: 0016, Status: 02b0
>         0x0008: Class: 0c Serial Bus, Subclass: 00 FireWire,
>                 Interface: 10, Revision: 00
>         0x000c: BIST: 00, Header Type: 00, Latency Timer: 10,
>                 Cache Line Size: 08
>         0x0010: BAR mem 32bit addr: 0xf5000000/0x00001000
>         0x0014: BAR empty (00000000)
>         0x0018: BAR empty (00000000)
>         0x001c: BAR empty (00000000)
>         0x0020: BAR empty (00000000)
>         0x0024: BAR empty (00000000)
>         0x0028: Cardbus CIS: 00000000
>         0x002c: Subsystem Vendor ID: 106b Product ID: 0030
>         0x0030: Expansion ROM Base Address: 00000000
>         0x0038: 00000000
>         0x003c: Interrupt Pin: 01 Line: 00 Min Gnt: 0c Max Lat: 18
>         0x0044: Capability 0x01: Power Management
>                 State: D0
>         0x0000: 0030106b 02b00016 0c001000 00001008
>         0x0010: f5000000 00000000 00000000 00000000
>         0x0020: 00000000 00000000 00000000 0030106b
>         0x0030: 00000000 00000044 00000000 180c0100
>         0x0040: 00000000 7e020001 00000000 00000000
>         0x0050: 00000000 00000000 00000000 00000000
>         0x0060: 00000000 00000000 00000000 00000000
>         0x0070: 00000000 00000000 00000000 00000000
>         0x0080: 000393ff fe6a1d74 00000000 00000000
>         0x0090: 00000000 00000000 00000000 00000000
>         0x00a0: 00000000 00000000 00000000 00000000
>         0x00b0: 00000000 00000000 00000000 00000000
>         0x00c0: 00000000 00000000 00000000 00000000
>         0x00d0: 00000000 00000000 00000000 00000000
>         0x00e0: 00000000 00000000 00000000 00000000
>         0x00f0: 00000000 00000000 00000000 00000000
>  0:15:0: Apple Pangea GMAC
>         0x0000: Vendor ID: 106b, Product ID: 0024
>         0x0004: Command: 0016, Status: 84a0
>         0x0008: Class: 02 Network, Subclass: 00 Ethernet,
>                 Interface: 00, Revision: 00
>         0x000c: BIST: 00, Header Type: 00, Latency Timer: 10,
>                 Cache Line Size: 08
>         0x0010: BAR mem 32bit addr: 0xf5200000/0x00200000
>         0x0014: BAR empty (00000000)
>         0x0018: BAR empty (00000000)
>         0x001c: BAR empty (00000000)
>         0x0020: BAR empty (00000000)
>         0x0024: BAR empty (00000000)
>         0x0028: Cardbus CIS: 00000000
>         0x002c: Subsystem Vendor ID: 0000 Product ID: 0000
>         0x0030: Expansion ROM Base Address: f5100000
>         0x0038: 00000000
>         0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 40 Max Lat: 40
>         0x0000: 0024106b 84a00016 02000000 00001008
>         0x0010: f5200000 00000000 00000000 00000000
>         0x0020: 00000000 00000000 00000000 00000000
>         0x0030: f5100000 00000000 00000000 404001ff
>         0x0040: 00000000 00000000 00000000 00000000
>         0x0050: 00000000 00000000 00000000 00000000
>         0x0060: 00000000 00000000 00000000 00000000
>         0x0070: 00000000 00000000 00000000 00000000
>         0x0080: 00000000 00000000 00000000 00000000
>         0x0090: 00000000 00000000 00000000 00000000
>         0x00a0: 00000000 00000000 00000000 00000000
>         0x00b0: 00000000 00000000 00000000 00000000
>         0x00c0: 00000000 00000000 00000000 00000000
>         0x00d0: 00000000 00000000 00000000 00000000
>         0x00e0: 00000000 00000000 00000000 00000000
>         0x00f0: 00000000 00000000 00000000 00000000
> 
> acpidump:
> 

Reply via email to