Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-29-2013, 08:22 PM   #1
LQ Newbie
Registered: Feb 2013
Location: Tideland
Distribution: Fedora
Posts: 19

Rep: Reputation: Disabled
[Tip] Using ProXPN via OpenVPN with Fedora

How to use the ProXPN VPN service under Fedora with OpenVPN. (Created with Fedora 19.) All commands executed as root.

I feel it necessary to break this into two parts: The 'Keys Part' and the 'Config Part'.

First, the initial step and the...

Keys Part:

Create a directory for the OpenVPN keys (if it doesn't exist):

mkdir /etc/openvpn/keys
Download and extract the ProXPN Mac source. We are only interested in the 'config' directory contained within.

cd /tmp && wget
tar -xvf proxpn_mac_source.tar.gz
Into that ProXPN MacOSX/config...

cd /tmp/MacOSX/config/ssl
Now we'll copy the certs and key to the OpenVPN keys directory we created earlier, but use a custom name for the client.crt and client.key files (I used 'example' as the custom name in the following command):

cp ca.crt /etc/openvpn/keys/ca.crt && cp client.crt /etc/openvpn/keys/example.crt && cp client.key /etc/openvpn/keys/example.key
The key and certs are now firmly planted, and we'll move on to working out the configuration...

Config Part:

We'll copy the sample OpenVPN client config and place it in /etc/openvpn as 'example.conf':

cp -ai /usr/share/doc/openvpn-*/sample/sample-config-files/client.conf /etc/openvpn/example.conf
Two steps here... Open the 'proxpn.ovpn' file from the Mac 'config' directory we used above (/tmp/MacOSX/config/proxpn.ovpn). Copy the contents of 'proxpn.ovpn' into the '/etc/openvpn/example.conf' file we created in the previous step, replacing all of the sample contents of 'example.conf'.

In our newly propagated 'example.conf', uncomment line 4. Also, if you are a ProXPN subscriber, you can edit this line to reflect another server in another location such as:
  • – Miami (the only option for free users)
  • - UK
  • – Seattle
  • – Netherlands
  • - Singapore
  • or New York (considered the fastest):

(There are others, I believe, though this is enough for me.)

Edit lines 11, 12, and 13 of 'example.conf' to reflect the new path to your certs and key. In this example:

ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/example.crt
key /etc/openvpn/keys/example.key

One more thing: Line 21 of example.conf reads 'auth-user-pass'... Change it to 'auth-user-pass passwd'. Save and close.

Now we create the 'passwd' file referenced in the last step.

touch /etc/openvpn/passwd
Open the created 'passwd' file and add two lines: The first line is your ProXPN username (email address), the second line is your password. Save and close.

As an aside, I have two .conf files for ProXPN, one for New York with line 4 reading
remote 443
...and one for the UK (BBC iPlayer):
remote 443

Now we'll create a systemd service for our example OpenVPN config (note that I am still using the 'example' nomenclature, please use something else from the beginning to suit your whim):

cd /lib/systemd/system
ln openvpn@.service openvpn@example.service
To start the service and launch our ProXPN/OpenVPN session:

systemctl start openvpn@example.service
To stop it...

systemctl stop openvpn@example.service
To start this ProXPN/OpenVPN service on boot:

systemctl enable openvpn@example.service
And that's it. Please let me know where I went wrong, where improvement lies, or if it works for you or not

Last edited by dereism; 07-29-2013 at 09:12 PM.


fedora, openvpn, vpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fedora won't boot or let me install, can you give me a tip? l1nux123 Fedora 10 04-17-2011 04:37 PM
LXer: Tip: Tip: Simple Regular Expressions For Reviewing Log Files LXer Syndicated Linux News 0 11-20-2008 12:41 PM
[tip]plan9port on fedora 7 binutils Red Hat 0 07-27-2007 04:35 PM
LXer: Video tip from RHCEs: Use Linux and OpenVPN to create a secure tunnel LXer Syndicated Linux News 0 07-20-2007 05:01 AM
Shortcuts... Just a tip w/ Fedora Core 3 NewGotham Linux - Software 1 05-06-2005 10:26 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration