LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   F14 NetworkManager to autoconnect OpenVPN at startup (https://www.linuxquestions.org/questions/linux-networking-3/f14-networkmanager-to-autoconnect-openvpn-at-startup-889978/)

sergani 07-05-2011 03:37 AM

F14 NetworkManager to autoconnect OpenVPN at startup
 
Dear all,

I have a Fedora 14 machine, and I have an OpenVPN CentOS 5.5 server installed and running without issues.
I've setup the Fedora machine to connect as a client to the server, and all goes pretty well using NetworkManager.

What I'm not able to do is getting NetworkManager to autoconnect to the server upon user login. I have the "Auto Connect" marked, but nothing happens at boot/login.

Is it possible to auto connect?

zer0signal 07-06-2011 12:28 AM

Couldnt you just use the openvpn service?

put your key and conf file in /etc/openvpn/

and then type

chkconfig openvpn on "which it will have the openvpn service start at boot, which should automagically connect to your vpn server"

to turn the service on for just that time

service openvpn start "or stop, or status"


to check if its connected and running you could do a....

tail -f /var/log/messages

which would show you the error log while trying to get it to connect...

sergani 07-06-2011 06:04 AM

Thanks 0signal... I'll put that theory to test and let you know how it goes.
Don't know how I missed any of that!

sergani 07-06-2011 06:20 AM

Problem solved, everything working fine.
Thanks a lot for the heads up.

zer0signal 07-06-2011 12:39 PM

Cool!

Cheers!


All times are GMT -5. The time now is 10:37 AM.