Iphone USB Tethering to an OpenWrt router
Installation
install some Kernel packages to get USB tethering support.
opkg update
opkg install kmod-usb-net kmod-usb-net-cdc-ether kmod-usb-net-rndis
opkg install kmod-usb-net kmod-usb-net-rndis kmod-usb-net-cdc-ether kmod-usb-net-ipheth usbmuxd libimobiledevice usbutils
To poke iOS to start sharing the connection, execute usbmuxd on the router:
/usr/sbin/usbmuxd -v
Configuration
Write this in your console if you are using SSH or serial connection:
uci set network.TetheringWAN=interface
uci set network.TetheringWAN.proto='dhcp'
uci set network.TetheringWAN.ifname='usb0'
uci set firewall.@zone[1].network='wan wan6 TetheringWAN'
uci commit