Skip to content

kinhsman/openwrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts for OpenWRT

Prerequisites:

Ensure wget is installed

opkg update
opkg install wget

OpenWRT Ookla Speedtest Installer

wget -qO- https://raw.githubusercontent.com/kinhsman/openwrt/main/scripts/speedtest-install.sh | ash
speedtest

OpenWRT Import and Replace Wireguard config of a VPN Concentrator

wget -O /usr/bin/import_wg https://raw.githubusercontent.com/kinhsman/openwrt/main/scripts/import_wg.sh && chmod +x /usr/bin/import_wg

Usage: ensure the file wg0.conf file is obtained before running the import command

import_wg wg0.conf

Auto Restart VPN upon ping loss

wget -O /usr/bin/vpn_auto_restart https://raw.githubusercontent.com/kinhsman/openwrt/main/scripts/vpn_ping_check_and_restart.sh && chmod +x /usr/bin/vpn_auto_restart || echo "Error: Script download or setup failed."

STOP: modify the PING destination within the script

nano /usr/bin/vpn_auto_restart
(crontab -l 2>/dev/null; echo "* * * * * /usr/bin/vpn_auto_restart") | crontab - && /etc/init.d/cron restart

Check Cron Status

/etc/init.d/cron status

Check logs

logread | grep PingCheck

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages