Skip to content

Instantly share code, notes, and snippets.

View b1oki's full-sized avatar
🛠️
hard trying

Alexander Sobyanin b1oki

🛠️
hard trying
View GitHub Profile
@b1oki
b1oki / vpn-auto-reconnect.sh
Created May 20, 2020 18:35 — forked from numericOverflow/vpn-auto-reconnect.sh
Auto reconnect to OpenVPN via NetworkManager
#!/bin/bash +x
# Source: http://www.gabsoftware.com/tips/automatically-reconnect-to-your-vpn-on-linux/
# Description:
# Make the script executable "chmod +x /path/to/the/script.sh
# Put the script in .profile or .bashrc so it can be run on user login:
# Example: echo "/path/to/the/script.sh start &" >> .bashrc
# The script can be bound to shortcut keys with these commands:
# /path/to/the/script.sh start # starts and monitors VPN connection