Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-16-2014, 06:31 AM   #1
LQ Newbie
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
Internet re-connects But VPN does not


I'm new to linux.
I am using Centos 6.5. Installed OpenVPN on it. Using services by

very often my internet goes down (actually my ISP disconnects when it suspects a VPN). I have created some macros in Autoit software to automatically restart the internet when it goes down (through my windows based laptop which is simultaneously connected to the same internet as my Centos based computer).
But the problem is that even when my internet comes back, my VPN does not connect automatically. It tries to reconnect automatically but it is unable to. I have to manually give the command of 'killall -9 openvpn' in the terminal to first stop the VPN and then start the VPN with this command "openvpn /etc/openvpn/Germany.ovpn &".

How can I automate this process? which detects the internet and if there is no connection then it should automatically process the above commands. Someone was telling me that BASH could help but i dont know how to use Bash. I really need some pointers here.

Much appreciated.
Old 10-18-2014, 10:45 AM   #2
Registered: Aug 2012
Posts: 74

Rep: Reputation: 12
Could you post the Autoit script you made?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
My VPN connects, but my browsers (chromium, Firefox) will not Glogue Linux - Networking 4 12-01-2013 05:07 PM
VPN pptpd Connects Once, Won't Connect Twice?@%* Fcukinyahoo Linux - Server 2 12-05-2012 10:44 AM
pon connects ok to remote VPN but I cant get a route added automatically CADIT Linux - Networking 3 03-08-2010 11:09 AM
Cisco VPN client connects no command prompt kender Linux - Networking 1 09-06-2006 08:34 AM
SuSE10 and vpn: it connects but no page accesible resal81 Linux - Networking 2 12-12-2005 10:07 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration