Coder Social home page Coder Social logo

mchsk / openwrt-lte-keep-alive Goto Github PK

View Code? Open in Web Editor NEW
29.0 2.0 25.0 1.74 MB

Having LTE modem up on OpenWRT but it keeps dropping the connection from time to time?

Shell 100.00%
openwrt lte-dongle lte network connection connection-manager fix online-monitor lede lede-project

openwrt-lte-keep-alive's Introduction

OpenWRT LTE Keep-alive scripts

OpenWRT logo How it looks

What is this? Long story short.
If your WAN interface using WWAN/QMI/NCM/3G protocol with your modem is working but your connection drops from time to time, you have just found the safe heaven. These scripts make sure your router is online, managing your interface or router itself. You would probably find use of it when you need to have working internet in locations with difficult access, e.g. cabin in the woods, garage or your house on Seychelles.

How it works?
All the scripts run on ash which is the basic shell for OpenWRT. The main script (internet-keep-alive.sh) tries to ping Google DNS servers (8.8.8.8) using Netcat.

  • If it fails, it restarts the interface.
  • If it fails 4 times in a row, it restarts whole system.
    Online/offline results are being logged into log.txt, which has a cap of 11000 lines, not to flood the whole space on the device.

Requirements
Netcat package The TCP/IP Network R/W Utility. The installer installs this package.

Installation

  1. Log into the router via SSH and go to the directory where you want to keep the script files.
  2. Make sure the router is online, then run the installer using this command and follow the instructions:
    wget -q --no-check-certificate https://raw.githubusercontent.com/mchsk/openwrt-lte-keep-alive/assets/install.sh -O install.sh && chmod +x install.sh && ./install.sh

Simple, right?

Enjoy โค๏ธ๐Ÿ ๐Ÿ“ก๐Ÿ“ถ!

openwrt-lte-keep-alive's People

Contributors

mchsk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

openwrt-lte-keep-alive's Issues

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.