Iphone USB tethering

Article description::This page is inspired by [[Android USB Tethering. It 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 no output is observed from dmesg, try mounting the iphone via ifuse:

The device must be unlocked and incoming connections must be allowed while ifuse is mounting. Ifuse will guide provide guidance though the process; 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: