Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

VPN (Virtual Private Network) With Fedora Linux: Jeff Arbuckle

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8
At a glance
Powered by AI
This document describes how to install and configure a VPN client on Fedora Linux to securely connect to the New Mexico Tech Computer Center network from a remote location.

You need to install several RPM packages - dkms, kernel_ppp_mppe, ppp, pptpclient, php-pcntl, php-gtk-pcntl and pptpconfig. These can be downloaded and installed using the rpm command.

You need to run pptpconfig, enter server details, select options to tunnel all traffic and refuse weak encryption, configure DNS and add mtu 1444 to pppd options. Then click add to save the connection details.

VPN (Virtual Private

Network) with Fedora


Linux
Jeff Arbuckle
2009-06-17 16:41

Abstract
Describes a technique for secure connections to the TCC from remote hosts.
This publication is available in Web form1 and also as a PDF document2. Please forward any
comments to tcc-doc@nmt.edu.

Table of Contents
1. Overview: A remote access method for Linux ............................................................................ 1
2. Installation for Fedora Core 2 .................................................................................................... 1
3. Configuration .......................................................................................................................... 2
4. Connecting .............................................................................................................................. 6
5. Closing the connection ............................................................................................................. 8

1. Overview: A remote access method for Linux


This document describes how to install PPTP Client on a Fedora Core 2 system. This client allows you
to connect to a remote system reliably and securely.
This connection is sometimes referred to as a tunnel to the remote system.
This information was adapted from documentation located on the PPTP Client website3. Please see this
site for installing PPTP Client on Linux systems other than Fedora Core 2, but follow the configuration
steps below.
The process involves installing two products (MPPE and then PPTP), followed by configuration. Later
sections will describe the process of connecting and disconnecting.

2. Installation for Fedora Core 2


Each of the links below takes you to a page that allows you to select a mirror site for downloading an
RPM file. To download, click on that link, then click on one of the mirror site icons. (Use left-click in
both cases. Right-clicking will get you a Web page, not an RPM.)
1. Download the dkms rpm4.
1
http://www.nmt.edu/tcc/help/pubs/vpnfedora/
2
http://www.nmt.edu/tcc/help/pubs/vpnfedora/vpnfedora.pdf
3
http://pptpclient.sourceforge.net
4
http://prdownloads.sourceforge.net/poptop/dkms-1.12-2.noarch.rpm

New Mexico Tech Computer Center VPN with Fedora Linux 1


Install it using this shell command:

rpm --install dkms-1.12-2.noarch.rpm

2. Download the kernel_ppp_mppe dkms rpm5.


Install it using:

rpm --install kernel_ppp_mppe-0.0.4-2dkms.noarch.rpm

3. Test to make sure the MPPE loads correctly:

modprobe ppp-compress-18 && echo success

It should print “success”.


4. Download the ppp rpm6.
Upgrade ppp with this shell command:

rpm --upgrade ppp-2.4.3-0.cvs_20040527.4.fc2.i386.rpm

5. Download the PPTP client program7.


Install it:

rpm --install pptp-linux-1.5.0-1.i386.rpm

6. Download the configuration program interpreter php-pcntl rpm8.


Install it:

rpm --install php-pcntl-4.3.8-1.i386.rpm

7. Download the configuration program GTK+ interface php-gtk-pcntl rpm9.


Install it:

rpm --install php-gtk-pcntl-1.0.0-2.i386.rpm

8. Download the configuration program pptpconfig rpm10.


Install it:

rpm --install pptpconfig-20040722-0.noarch.rpm

3. Configuration
These steps will have to be done only once.
1. As root, run pptpconfig. A window will appear:

5
http://prdownloads.sourceforge.net/poptop/kernel_ppp_mppe-0.0.4-2dkms.noarch.rpm
6
http://prdownloads.sourceforge.net/poptop/ppp-2.4.3-0.cvs_20040527.4.fc2.i386.rpm
7
http://prdownloads.sourceforge.net/pptpclient/pptp-linux-1.5.0-1.i386.rpm
8
http://prdownloads.sourceforge.net/pptpclient/php-pcntl-4.3.8-1.i386.rpm
9
http://prdownloads.sourceforge.net/pptpclient/php-gtk-pcntl-1.0.0-2.i386.rpm
10
http://prdownloads.sourceforge.net/pptpclient/pptpconfig-20040722-0.noarch.rpm

2 VPN with Fedora Linux New Mexico Tech Computer Center


2. Enter the following information into the Server tab:
Name:
Enter a name for this connection, such as “TCC VPN”.
Server:
Enter “vpn.nmt.edu”.
Domain:
Leave this blank.
Username:
Enter your TCC username.
Password:
Enter your TCC password.

3. Select All to Tunnel in the Routing tab:

New Mexico Tech Computer Center VPN with Fedora Linux 3


4. In the DNS tab:
• Under “Servers:”, enter these two addresses:

129.138.4.138 129.138.250.10

• Under “Options:”, enter “search nmt.edu”.

4 VPN with Fedora Linux New Mexico Tech Computer Center


5. In the Encryption tab:
• Select Refuse 40-bit Encryption.
• Select Refuse Stateless Encryption.

New Mexico Tech Computer Center VPN with Fedora Linux 5


6. In the Miscellaneous tab, add the option “mtu 1444” to the text field for “Options for pppd,
see 'man pppd'”.

7. Click on Add, and the tunnel will appear in the PPTP Client Tunnel List.

4. Connecting
To make a VPN connection to the TCC:
1. As root, bring up the pptpconfig application as described above.
2. Right-click on the TCC tunnel in the “PPTP Client Tunnel List”, and select Start from the popup
menu.

6 VPN with Fedora Linux New Mexico Tech Computer Center


Alternatively, you can click on the TCC tunnel in the list and then click the Start button.
3. A window appears, showing the progress of the connection. You may close this window at any
time without closing the connection.

4. If the connection was successful, the status of the VPN will show as “Running”. Once the connection
is running, you can close the main window without closing the connection.

New Mexico Tech Computer Center VPN with Fedora Linux 7


Once you have opened your VPN tunnel, your machine is effectively on the TCC network. You can use
TCC machines in these ways, and more:
• To log in to a TCC system, use this command:

ssh hostname

where hostname is the name of the system, such as rainbow.


• Your Web browser can access any Web page on the Internet.
• You can transfer files with ftp (File Transfer Protocol) or scp (Secure Copy). See the man pages for
ftp11 and scp12.

5. Closing the connection


If you closed the pptpconfig window after you established the connection, run pptpconfig as root
to bring the window back.
To close the connection, select the VPN item from the list and click the Stop button.

11
http://www.nmt.edu/bin/man?ftp
12
http://www.nmt.edu/bin/man?scp

8 VPN with Fedora Linux New Mexico Tech Computer Center

You might also like