So proud of my little #WeekendProject: after long without a decent LAN because I cancelled my home Internet subscription in favor of tethering from my mobile phone I finally took the matter in my hands.
I turned my #RaspberryPI into a router who takes my iPhone's Internet connection trough USB tethering and shares it to Wi-Fi and Ethernet clients.
Why I did this instead of just using iPhone's built in Wi-Fi hotspot? Well, it boils down to two reasons:
- Some devices and operating systems struggles with Wi-Fi or may be completely incompatible with it.
- iPhone Wi-Fi enforces client isolation impeding an actual LAN between connected devices. On the Raspberry I'm free to set my own rules for routing, DHCP, DNS... so I put all the devices connected trough both Wi-Fi and Wired under a single subnet where they can easily communicate and share data.
I then installed and configured Avahi (an open source equivalent of Apple's "Bonjour") on devices who didn't had it preinstalled allowing them to find each other using hostnames, without the need of a central DNS.

