Skip to content

Latest commit

 

History

History

internet-monitor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

📦 Internet Connectivity Monitor

🇬🇧 English

📝 Description

Pings 8.8.8.8 and restarts the WAN interface if no internet connectivity is detected.

⚙️ Configuration

Edit these variables inside the script:

:local wanInterface "ether1"
:local pingTarget "8.8.8.8"
:local retryCount 3

📥 Installation

  1. Go to System > Scripts
  2. Create a script named internet-monitor
  3. Paste the contents of internet-monitor.rsc
  4. Set permissions: read, write, policy, test

⏱️ Scheduler Setup

/system scheduler
add name="internet-monitor" interval=15s on-event="/system script run internet-monitor" policy=read,write,test

🇬🇷 Ελληνικά

📝 Περιγραφή

Κάνει ping στη διεύθυνση 8.8.8.8 και επανεκκινεί την WAN αν δεν υπάρχει σύνδεση στο διαδίκτυο.

⚙️ Ρυθμίσεις

Αλλάξτε τις εξής μεταβλητές στο script:

:local wanInterface "ether1"
:local pingTarget "8.8.8.8"
:local retryCount 3

📥 Εγκατάσταση

  1. Πήγαινε στο System > Scripts
  2. Δημιούργησε νέο script με όνομα internet-monitor
  3. Επικόλλησε το περιεχόμενο του internet-monitor.rsc
  4. Ρύθμισε δικαιώματα: read, write, policy, test

⏱️ Scheduler

/system scheduler
add name="internet-monitor" interval=15s on-event="/system script run internet-monitor" policy=read,write,test

👤 Author / Δημιουργός

Thanos Pournaras
🔗 https://thanosnm.github.io

☕ Support My Work / Στήριξέ με

Buy Me A Coffee