[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howtos:misc:openvpn [2013/01/14 21:13 (UTC)] – [Using OpenVPN with a password file] comfreehowtos:security:openvpn [2013/01/14 21:43 (UTC)] – [Sources] comfree
Line 10: Line 10:
 It's very simple if you already got a ready-to-go config by any openvpn provider. It's very simple if you already got a ready-to-go config by any openvpn provider.
 <code> <code>
-openvpn --config yourconfig.ovpn+openvpn --config yourconfig.ovpn
 </code> </code>
  
Line 30: Line 30:
 For vim do: For vim do:
  
-<code>vim openvpn.SlackBuild</code>+<code>vim openvpn.SlackBuild</code>
  
 Now look for this block of code: Now look for this block of code:
Line 61: Line 61:
 Save the file, make it executable and rebuild the package with Save the file, make it executable and rebuild the package with
  
-<code>chmod +x openvpn.SlackBuild && ./openvpn.SlackBuild</code>+<code>chmod +x openvpn.SlackBuild && ./openvpn.SlackBuild</code>
  
 The new package should be in the /tmp directory. The new package should be in the /tmp directory.
Line 67: Line 67:
 Install it with: Install it with:
  
-<code>upgradepkg --install-new /tmp/yourpackage.tgz</code>+<code>upgradepkg --install-new /tmp/yourpackage.tgz</code>
  
 Now you are able to load your login and password from a file. Now you are able to load your login and password from a file.
Line 77: Line 77:
 </code> </code>
  
-Safe the file and make it only readable for the owner 
  
-<code>chmod 700 yourfile</code>+Save the file and make it only readable for the owner. 
 +<code>chmod 700 yourfile</code>
  
-At last add +Lastly add the line below to your openvpn config.
 <code>auth-user-pass /path/to/your/passwordfile</code> <code>auth-user-pass /path/to/your/passwordfile</code>
-to your openvpn config and you should be able to login without typing your password everytime.+Now you should be able to login without typing your password everytime.
  
  
Line 95: Line 95:
 <!-- * Originally written by [[wiki:user:xxx | User X]] --> <!-- * Originally written by [[wiki:user:xxx | User X]] -->
 <!-- * Contributions by [[wiki:user:yyy | User Y]] --> <!-- * Contributions by [[wiki:user:yyy | User Y]] -->
-Wikipedia: [[http://en.wikipedia.org/wiki/Openvpn]] +  * Wikipedia: [[http://en.wikipedia.org/wiki/Openvpn]] 
 +  * Originally written by [[wiki:user:comfree | comfree]]
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must remove the tag-word "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
-{{tag>howtos}}+{{tag>howtos openvpn slackbuild security}}
  
 howtos:security:openvpn ()