GithubHelp home page GithubHelp logo

admonstrator / glinet-remove-chinalock Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 502 KB

Restores ("Unlocks") VPN / AdGuard Home on GL.iNet devices bought in China with a CN firmware.

License: MIT License

Shell 100.00%

glinet-remove-chinalock's Introduction

GL.iNet Remove China Lock

Profile Picture

This script is designed to unlock a GL.iNet router that has been locked due to laws in China.

By running this script, the VPN features and AdGuard Home will be available in the GL GUI.

Warnings & Disclaimers

WARNING: This script is highly experimental and not officially supported by GL.iNet.

It could potentially harm your router and void your warranty. Unbricking might not be possible!

Make sure to copy the backup file to a safe place! Do it before you run firstboot because this will delete EVERYTHING.

After running this script, you will need to set up the device again. A full reset is required!

On devices with 5G/LTE modems changing the country code might affect the modem's functionality as well.

Usage

./glinet-remove-chinalock.sh [--new-country-code=<COUNTRY_CODE>] [--country-code=<COUNTRY_CODE>] [--help]

Options

  • --new-country-code: Set the new country code (default: US) - Must be ISO 3166-1 alpha-2 code
  • --country-code: Set the current country code (default: CN) - Must be ISO 3166-1 alpha-2 code
  • --help: Show the help message

Example

./glinet-remove-chinalock.sh --new-country-code=DE

This will remove the China lock and set the country code to DE (Germany).

Before While running After
before asciicast after

Steps After Running the Script

  1. Run the command: firstboot and confirm with y
  2. Run the command: reboot
  3. Set up the device again, all settings will be lost

Tested Devices

Device Tested
GL-MT3000 / AX3000 (Beryl AX)
GL-MT6000 (Flint 2)
GL-XE3000 (Puli AX)

Issues

Please report issues to this repository, make sure to include your router model and firmware version.

License

This project is licensed under the MIT License - see the LICENSE file for details.

glinet-remove-chinalock's People

Contributors

admonstrator avatar

Stargazers

Nick avatar  avatar mangkoran avatar Fil Dunsky avatar

Watchers

 avatar

Forkers

oasis-2023

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.