Iphone USB tethering

This page is inspired by Android USB Tethering, and only documents the differences.

tested devices

 * iPhone 4S, iOS5
 * iPhone 5, iOS6
 * iPhone 5S, iOS9

tools needed
You will also need and  from the default portage tree.

ipheth interface
If everything is installed successfully, plug in the iPhone with USB cable. You should see something like:

A new network interface eth1 plugged by ipheth can be found, after running dhcp on it:

If you don't see the output on dmesg, try mounting your iphone via ifuse:

You need to unlock your device while ifuse is mounting and you need to allow the incoming connection on your phone. Ifuse will guide you through this process, just follow its instructions and try mounting until it succeeds.

udev trigger
The hotplug feature of OpenRC can be used to set up the ipheth interface automatically.

ships, which can be used to hotplug network interfaces. The main part of the script is

and it can be called with a udev rule:

Enable hotplug to eth1, the ipheth device:

add net.eth1:

After plugging in the iPhone, we can see the service started: