Assuming that:
- your Linux Laptop uses wlan0 for its wireless connection and your home network uses 192.168.1.x for IP space.
On the Linux laptop:
- as root or with sudo -- enable IP forwarding and load the change with sysctl -p.
sudo sysctl net.ipv4.ip_forward=1 ## updated edit thanks to folks pointing out my typo.
sudo sysctl -p
- if you have ufw installed and running -- setup a NAT masquerading rule for any hosts forwarding IPv4 traffic to it.
add this line to /etc/ufw/before.rules file right after the "*nat" line
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 192.168.1.1/24 -o wlan0 -j MASQUERADE
On the mac:
- set your IP address manually to be on the same LAN as the Linux laptop, but for the gateway address... point that at the IP for the Linux Laptop.