There appears to be a bug in MacOS Ventura (but also any version) whereby an attempt to share a tunnel connection (like WireGuard, OpenVPN, etc.) over WiFi will fail without error (no AP created). I doubt Apple will ever fix this long-standing bug, but I am hopeful a workaround can be implemented.
It is possible to share an "AdHoc" network via:
sudo networksetup -createnetworkservice AdHoc lo0
sudo networksetup -setmanual AdHoc 192.168.2.1 255.255.255.255
sudo networksetup -setmanual AdHoc 127.0.0.1 255.255.255.255
then selecting this new service in Internet Sharing. An AdHoc AP is created. Of course, this doesn't have access to the internet so something has to be routed such as a NAT router. I haven't used pf since I setup a pfsense router over a decade ago, but I tried something like:
nat on utun3 from 192.168.2.0/24 to any -> utun3
but that didn't appear to work. Any suggestions on how to get around this problem?
Asked by Ball
(61 rep)
Mar 3, 2025, 03:46 AM