Giter Club home page Giter Club logo

openwrt-usb-tethering's Introduction

LOCKDOWN v5

An OpenWrt script to add USB Tethering for iOS and Android

Why Lockdown ?

When using USB tethering with iOS, the folder who UUID.plist are stored (/var/lib/lockdown) is erased at each reboot... So I've created the script "lockdown.sh" to backup those files each minute and restore it at each boot.

Custom firmwares for 4MB flash devices

Because of space needed for all packages, I've also managed to fit all necessary on a 4MB size firmware with LuCI. It is based on the last OpenWRT 15.05 Chaos Calmer and all is pre-configured. This firmware doesn't support IPv6 and Wi-Fi.

Firmwares for most popular routeur TL-MR3020 and TL-W703N are provided in the releases (aks for any model supported by OpenWRT)

Compile yourself

Rename the chaos_calmer.config file to .config to get the right menuconfig.

v5.1 2015.12.29 : Auto-installation

Features:

Check the required packages and installs them if there is enough space available (Up to 1.6 MB for all packages). A device with 8 MB flash is recommended.

For the common TL-MR3020 and TL-W703N with 4MB flash, a customized firmware (without IPv6 and Wi-Fi support) is available at https://github.com/LeJeko/OpenWRT-USB-Tethering/releases/tag/v5.1

Configure network and firewall via uci commands to ensure compatibility with all devices.

Because of the folder /var/lib/lockdown is erased at each reboot, backup and restore UUID files stored in it. At boot then each minute.

Check integrity of UUID files in case of a device was restored.

Benefits:

  • For iOS, Internet sharing is automatically activated when you plug the USB cable even if the screen is locked.
  • Device is charging.

Installation

/!\ A valid internet connection via Wi-Fi or WAN Ethernet is required for installing required packages

  1. copy the script on the device via scp
  1. connect to the device and install:
  • $ sh /tmp/lockdown.sh install
  1. Restart the device
  2. Reconnect with new IP 192.1680.254

Connect iOS device

After many tests, the best way to connect an iPhone is:

  • a. Inactive Internet sharing
  • b. Connect iPhone via USB
  • c. At asked, "Trust" the device
  • d. Active internet sharing
  • e. The blue band will appears on the top of the screen
  • (if not after 30sec, inactive and reactive internet sharing)
  • f. Leave all connected at least one minute so the script can do its job

To test if the file has been created, disconnect and reconnect the iPhone. If the dialog "Trust" appears, validate and repeat step 2. When the connection is automatic, you're gone.

A log is stored in /etc/lockdown/lockdown.log

openwrt-usb-tethering's People

Contributors

lejeko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.