Help with script to observe connection, check speed and change connection
Posted: Fri Sep 29, 2017 4:31 pm
Hi all,
I am a bash-script newbie and allready quite proud that I manage to establish a openvpn connection via shell. I spent the whole day in searching ways to query if the openvpn connection is still up and to shut it down. I found several solutions, but I have no clue which one is the "gratefull" one. My goal is the following: I want a script that does the following:
Best regards
doc
I am a bash-script newbie and allready quite proud that I manage to establish a openvpn connection via shell. I spent the whole day in searching ways to query if the openvpn connection is still up and to shut it down. I found several solutions, but I have no clue which one is the "gratefull" one. My goal is the following: I want a script that does the following:
- 1. as soon as the openvpn connection shuts down (e.g. because provider closes connection), immediately shutdown any network traffic and establish a new connection to another server. I have 4 possible servers, they all use the same config, I only need to change the --remote server port and that is the part that I will be able to manage.
- 2. I want to change the connection if the speed goes to low. But if I get some more advice to manage my first point, I am pretty sure, I will be able to do that on my own. I allready made a script for speedtesting.
Best regards
doc