Jump to content
Not connected, Your IP: 3.141.192.174
Sign in to follow this  
chewy74

ANSWERED Auto start and connect after reboot on raspberry pi

Recommended Posts

I'm trying to automatically connect to airvpn server Cephei if I reboot raspberry pi.

 

I've got the configuration file and renamed to ***.conf and placed it in /etc/openvpn/ folder. From what I've read it should pick up the conf file at startup and connect, but it doesn't.

 

Am I missing a step? I've read different variations on how to setup...

 

Running Raspbian on my pi

 

Thanks for the help

Share this post


Link to post

For the noobs

 

You download the configuration file for your preferred server and then rename the file extension from *ovpn to *conf and move it to /etc/openvpn/

 

Then

sudo nano /etc/default/openvpn

 

Look for

#AUTOSTART="servername"

 

Uncomment to look like

AUTOSTART="servername"

 

Replace "servername" with whatever server configuration file you generated mines is "AirVPN_Cephei"

Leave out the .conf

 

Ctrl X and save changes. Now it should connect to your server after rebooting.

 

Hope this helps someone

Share this post


Link to post

For the noobs

 

You download the configuration file for your preferred server and then rename the file extension from *ovpn to *conf and move it to /etc/openvpn/

 

Then

sudo nano /etc/default/openvpn

 

Look for

#AUTOSTART="servername"

 

Uncomment to look like

AUTOSTART="servername"

 

Replace "servername" with whatever server configuration file you generated mines is "AirVPN_Cephei"

Leave out the .conf

 

Ctrl X and save changes. Now it should connect to your server after rebooting.

 

Hope this helps someone

 

I spent a couple nights trying to find this solution! I was about to give up and was lucky enough to stumble across this post, making it SO SIMPLE!!! I signed up for an account just to say THANK YOU!!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...