User Tools

Site Tools


networking:remote:openvpn

This is an old revision of the document!


OpenVPN

OpenVPN is an SSL-based VPN technology that can run on both Linux and Windows systems.

TUN = Routed Server TAP = Bridged Server

Testing Connections

ifconfig

route -n

ping <hostname>

ping <host IP>

Client

Routing

You may find that the VPN connection pushes a new Default Route. This can wreak havoc on your VPN workstation behavior.

You can get around this problem by adding a route on the IPv4 tab when editing the NetworkManager VPN connection. Try adding a route something like:

|Setting Name|Setting Data|

address10.0.0.0
netmask255.0.0.0
gateway10.0.0.1
metric1000
Ignore automatically obtained routesSelected (Checked)
Use this connection only for resources on this networkSelected (Checked)

The gateway was the remote OpenVPN server's private IP address.

Fedora 16

Installation

Verify these packages are installed (probably by default):

sudo yum install openvpn NetworkManager-openvpn

Command Line

cd Dropbox/VPN/MER/
sudo openvpn filename.ovpn

NetworkManager GUI

Using NetworkManager for VPN connections is easy for users to manage and doesn't require root or sudo permissions.

:!: If a .ovpn file is provided, use it for clues to configure the NetworkManager VPN connection.

Click NetworkManager icon → Network Settings

Click + (Plus Symbol) → VPN → Create → OpenVPN

  • Name of Connection
  • Remote VPN Server (Gateway)
  • Certificates (TLS)
  • Browse to certificate (.p12 file) assigned by OpenVPN admin
    • You might store your VPN configuration files and certs in a Dropbox folder
  • Password assigned by OpenVPN admin
  • Advanced
    • General Tab
      • Use LZO Compression
      • Use Custom MTU - 1400
    • Security Tab
      • Cipher - BF-CBC
networking/remote/openvpn.1326824004.txt.gz · Last modified: 2012/01/17 11:13 by gcooper