[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 21:18 (UTC)] – [Sources] comfree | howtos:security:openvpn [2013/01/23 00:25 (UTC)] – [How to use OpenVPN] 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. | ||
< | < | ||
- | 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 / | If you don't have a config that you can use you should have a look in / | ||
+ | |||
+ | ==== Using OpenVPN with the i3wm ==== | ||
+ | |||
+ | I'm using the [[howtos: | ||
+ | The i3status.conf lies in /etc/ if installed with the SlackBuild. | ||
+ | |||
+ | You have to start openvpn with an additional --writepid / | ||
+ | |||
+ | For example: | ||
+ | |||
+ | < | ||
+ | openvpn --config / | ||
+ | </ | ||
+ | |||
+ | To use the build in feature you have to edit the config file. | ||
+ | Look for the | ||
+ | < | ||
+ | run_watch VPN { | ||
+ | pidfile = "/ | ||
+ | }</ | ||
+ | |||
+ | block and change the something into your choosen pid name. | ||
+ | In this case: | ||
+ | |||
+ | < | ||
+ | run_watch VPN | ||
+ | pidfile = "/ | ||
+ | } | ||
+ | </ | ||
+ | |||
===== Using OpenVPN with a password file ===== | ===== Using OpenVPN with a password file ===== | ||
Line 30: | Line 60: | ||
For vim do: | For vim do: | ||
- | < | + | < |
Now look for this block of code: | Now look for this block of code: | ||
Line 61: | Line 91: | ||
Save the file, make it executable and rebuild the package with | Save the file, make it executable and rebuild the package with | ||
- | < | + | < |
The new package should be in the /tmp directory. | The new package should be in the /tmp directory. | ||
Line 67: | Line 97: | ||
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 79: | Line 109: | ||
Save the file and make it only readable for the owner. | Save the file and make it only readable for the owner. | ||
- | < | + | < |
Lastly add the line below to your openvpn config. | Lastly add the line below to your openvpn config. | ||
Line 99: | Line 129: | ||
<!-- 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> |