Jump to content
Not connected, Your IP: 18.225.156.91
johndoe_01

ANSWERED Automatic start on boot stunnel en openvpn

Recommended Posts

Is there a way to start stunnel and openvpn (to establish a ssl connection) on boot, without use of the client ?

 

Regards...

Share this post


Link to post

Define without use of the client. Without the AirVPN client (Eddie) or without a client at all?

You should either make a scheduled task or a cron job, depends on which OS you are, or place

both stunnel and openvpn clients on your router. The client run somewhere, thou.


Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees.

Share this post


Link to post

Indeed, I mean without Eddie. I prepared my router and it worked for all the other configurations, but it is a problem with SSH or SSL (is disabled when preparing the configuration files). So I want the connection started at boot (Linux Mint) and need some help or ideas.

Share this post


Link to post

I found the solution It was very simple.

 

install if needed stunnel (apt-get install stunnel)

 

renamed :

  • AirVPN_SSL-443.ovpn to airvpn.conf
  • AirVPN_SSL-443.ssl to stunnel.conf

copied

  • airvpn.conf to /etc/openvpn
  • stunnel.conf to /etc/stunnel
  • stunnel.crt to /etc/stunnel

edit :

  • /etc/default/openvpn and add the line #AUTOSTART="home office" to #AUTOSTART="airvpn"  and remove the #
  • /etc/stunnel/stunnel.conf and change the line CAfile = stunnel.crt to CAfile = /etc/stunnel/stunnel.crt
  • /etc/default/stunnel4 and change the line ENABLED=0 to ENABLED=1 (to enable stunnel automatic startup)

Then reboot and everything is working.

 

15 nov 2016 - WARNING : on https://ipleak.net/#dnsleak I discover that there is a dns-leak with this setup - help needed.

 

Find the soloution for the DNS leak :

 

Edit /etc/NetworkManager/NetworkManager.conf

 

change the line

 

dns=dnsmasq

 

into

 

#dns=dnsmasq

 

save and reboot. All done !

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

×
×
  • Create New...