Skip to content

alvinjiang/edgeos_vpn_watchdog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EdgeRouter VPN Watchdog

A couple of scripts for watching my VPN connections on an EdgeRouter. Tested on my Ubiquiti EdgeRouter Infinity running EdgeOS 2.0.8.

Installation

Copy the scripts to /config/scripts/.

Setup task-scheduler (crontab), mine looks like this:

configure
show system task-scheduler 
 task vpn_check {
     crontab-spec "55 * * * *"
     executable {
         path /config/scripts/check_vpn.sh
     }
 }

Usage

Edit vpn_reset.sh, change the vtun interfaces to match yours.

This is what my VPN definitions look like:

configure
show interfaces openvpn
 openvpn vtun1 {
     config-file /config/auth/myvpn/myvpn_us-la_udp.ovpn
     description "MyVPN - US LA (UDP)"
 }
 openvpn vtun2 {
     config-file /config/auth/thevpn/thevpn_eu-frankfurt_tcp.ovpn
     description "TheVPN - EU Frankfurt (TCP)"
 }

Contributing

Pull requests welcome.

Authors

  • Alvin Jiang

License

This project is licensed under the MIT License.

About

EdgeOS VPN Watchdog and reset scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages