Tuesday, July 2, 2024

community – routing between MacOS Sonoma interfaces

MacBook Air M2 Sonoma 14.4

After a few days making an attempt completely different options I’ve learn, time to ask right here.

Have a RPi 4 related to MacBook by way of USB Ethernet adapter en5.
Makes use of DHCPCD, however fails over to static 192.168.8.100 255.255.255.0 192.168.8.1 configuration, if it may’t discover DHCP server.
Can hook up with it by way of ssh both manner from the Mac.

MacBook is related to the Web through WiFi en0 to a enterprise router 192.168.1.1 and will get dhcp tackle 192.168.1.77.
Reaches Web correctly.
Can ping all concerned IPs efficiently, together with the RPi.

Cannot get the RPi to succeed in the Web by way of the MacBook.

I attempted to make InternetSharing work, however gave up after about half a day; I see that the identical bugs and limitations others described in it greater than a decade in the past are nonetheless right here within the newest MacOS! (So, clear how little Apple cares about this function working effectively…)

Put in dnsmasq efficiently and acquired correct dhcp and dns from it to the RPi. It has dns decision.
Nonetheless, the RPi nonetheless cannot attain the Web.

dnsmasq from homebrew does not appear to log anyplace, regardless that i enabled that in its config file.

Disabling ufw on RPi, MacOS firewall and VPN app – additionally not useful.

I attempted many static routing articles, however the RPi nonetheless can solely ping the Mac’s Ethernet interface IP 192.168.8.1. Pinging the Mac’s WiFi interface 192.168.1.77 and the router 192.168.1.1 each fail from RPi, however succeed from the Mac.

So, the Mac is aware of path to the RPi, and the RPi can attain the Mac.

192.168.8.100(RPi eth0)<===>(Mac en5)192.168.8.1<== X ==>192.168.1.77(Mac en0)<===>(Router)

Learn how to make the Mac ahead all en5 visitors to en0?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles