Skip to content

Instantly share code, notes, and snippets.

@sulincix
Last active November 18, 2025 22:18
Show Gist options
  • Select an option

  • Save sulincix/4c189663511d7ce61991a6524811837f to your computer and use it in GitHub Desktop.

Select an option

Save sulincix/4c189663511d7ce61991a6524811837f to your computer and use it in GitHub Desktop.
OpenWRT Usb tethering
# update repository
opkg update
# install packages
opkg install \
kmod-nls-base \
kmod-usb2 \
kmod-usb-core \
kmod-usb-net \
kmod-usb-net-cdc-ether \
kmod-usb-net-rndis \
kmod-usb-ohci kmod-usb-uhci \
kmod-usb-net-cdc-ncm \
kmod-usb-net-cdc-ether \
kmod-usb-net-ipheth \
usbmuxd \
libimobiledevice \
usbutils \
hub-ctrl
# Create usb wan
uci set network.uwan=interface
uci set network.uwan.device='usb0'
uci set network.uwan.proto='dhcp'
uci set network.uwan.ifname='usb0'
uci commit network
# restart network
/etc/init.d/network restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment