I'm working a project that requires the raspberry pi to be portable, and accessible via SSH (headless setup) in places where there is no internet connection (such as on the top of a hill with no buildings). I have a small low-power router (TP-link wr802n) that I want to use to set up a LAN. I'm having some separate issues SSHing into the Pi over the wireless network (Trouble autoconnecting to wireless network after automounting USB drive) so I'm hoping to connect to it via direct ethernet connection to my mac as a contingency.
However sharing my internet connection over the usual method (system preferences > sharing > share wifi over ethernet) only seems to work when (a) the mac is connected to a wifi network (duh) and (b) when the wifi network is connected to the internet. It does not work when I'm on a wireless local area network that does not have an internet connection (wan), as is typically the case in my situation (this is for a fieldwork research situation in a country with relatively little internet infrastructure).
I suspect this might be an issue with setting up a DHCP server. Do I need to install such a DHCP server on my mac, and how would I configure it to work as needed?
Note: this seems to be a similar issue to this 14 month old unresolved post: SSH Via Ethernet Without Internet Sharing