[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.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:misc:openvpn [2013/01/14 20:44 (UTC)] – [Using OpenVPN with automatic password input] comfree | howtos:security:openvpn [2013/01/14 21:43 (UTC)] – [Sources] comfree | ||
---|---|---|---|
Line 1: | Line 1: | ||
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
====== OpenVPN ====== | ====== OpenVPN ====== | ||
- | |||
- | =============== Wikipedia about OpenVPN ============ | ||
OpenVPN is an open source software application that implements virtual private network (VPN) techniques for creating secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It uses a custom security protocol that utilizes SSL/TLS for key exchange. It is capable of traversing network address translators (NATs) and firewalls. It was written by James Yonan and is published under the GNU General Public License (GPL). | OpenVPN is an open source software application that implements virtual private network (VPN) techniques for creating secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It uses a custom security protocol that utilizes SSL/TLS for key exchange. It is capable of traversing network address translators (NATs) and firewalls. It was written by James Yonan and is published under the GNU General Public License (GPL). | ||
Line 9: | Line 7: | ||
===== How to use OpenVPN ===== | ===== How to use OpenVPN ===== | ||
- | It's barely 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. | ||
< | < | ||
- | $ openvpn --config yourconfig.ovpn | + | # openvpn --config yourconfig.ovpn |
</ | </ | ||
+ | If you don't have a config that you can use you should have a look in / | ||
+ | ===== Using OpenVPN with a password file ===== | ||
+ | Since I wanted my openvpn connection to start automatically when I connect my Thinkpad to the dock I thought it would be usefull to add the ' | ||
+ | Start by grabbing the source and slackbuild from one of the Slackware mirrors. | ||
- | If you don't get a config that you can use you should have a look at /etc/openvpn. | + | [[http://mirrors.slackware.com/ |
- | Slackware got a example config with some good hints in there. | + | |
- | ===== Using OpenVPN with automatic password input ===== | + | Change the mirror for your needs, for example -current. |
- | Since I wanted to use my openvpn connection to start automatically when I put my Thinkpad into the dock I thought it would be usefull to add the ' | + | In the next step we will change |
- | That feature is not added by default on Slackwares package. You have to add it to the slackbuild and recompile the package. | + | |
- | Start with grabbing | + | Open the slackbuild |
- | [[http:// | + | For vim do: |
- | Change the mirror for your needs, for example -current. | + | < |
- | + | ||
- | In the next step we will change the openvpn.Slackbuild file. | + | |
- | + | ||
- | < | + | |
- | vim openvpn.Slackbuild | + | |
- | </ | + | |
Now look for this block of code: | Now look for this block of code: | ||
Line 65: | Line 59: | ||
</ | </ | ||
- | Save the file and rebuild the package with | + | Save the file, make it executable |
- | < | + | < |
The new package should be in the /tmp directory. | The new package should be in the /tmp directory. | ||
Line 73: | Line 67: | ||
Install it with: | Install it with: | ||
- | < | + | < |
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 83: | Line 77: | ||
</ | </ | ||
- | Safe the file. And make it only readable for the owner | ||
- | < | + | Save the file and make it only readable for the owner. |
+ | < | ||
- | At last add | + | Lastly |
< | < | ||
- | 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 101: | Line 95: | ||
<!-- * Originally written by [[wiki: | <!-- * Originally written by [[wiki: | ||
<!-- * Contributions by [[wiki: | <!-- * Contributions by [[wiki: | ||
+ | * Wikipedia: [[http:// | ||
+ | * Originally written by [[wiki: | ||
<!-- 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 " | <!-- You must remove the tag-word " | ||
- | {{tag> | + | {{tag> |