Incidentally, this worked fine for me to share the connection to Bela over USB from eduroam (university network) on MacOS X 10.10 Yosemite:
$ sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=1
$ sudo /usr/sbin/natd -interface en1 -dynamic
$ sudo /sbin/ipfw add divert natd all from any to any via en1
where en1
is your wifi interface
additionally, you have to issue proper route and resolv commands on the bbb
BBB:
$ echo "nameserver 8.8.8.8" > /etc/resolv.conf
$ /etc/init.d/networking restart
you may also need
$ route add default gw 192.168.7.1 usb0
where 192.168.7.1 is the address of your host and usb0 is the connection in use 🙂
works a treat on the imac with yosemite. I don't think it would work on later versions of MacOS