Iphone USB tethering

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

tested devices

 * iPhone 4S, iOS5

tools needed
found in dberkholz's overlay. You can set up the overlay with layman.

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

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

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: