Vpn linux

From Cncz
Revision as of 00:10, 15 August 2009 by Gerritg (talk | contribs) (→‎Notes)
Jump to navigation Jump to search

Configuring a PPTP VPN connection in Linux

To configure a PPTP VPN connection in Linux you need at least the following:

  • Read science.ru.nl instead of sci.kun.nl. Pictures are before the DNS rename!!!
  • An internet connection
  • A provider with GRE support (default)
  • A cabel/ADSL router (if applicable) with GRE support (default)
  • A username and password

See [1] and/or [2] for installation instructions for the various Linux distributions.

PPTP VPN in openSuSE 11.1

  • Install the "pptp" package using YaST
  • Become root using the "su" command
  • Create a ppp0 interface with the following command:

pptpsetup --create radboud --server vpn-srv.science.ru.nl --username USERNAME --encrypt --start

  • For each website you want to access through VPN give a "route" command. E.g. for access to www.sciencedirect.com:

route add -net www.sciencedirect.com netmask dev ppp0


  • The configuration file /etc/ppp/options contains by default "idle 600". A VPN connection is disconnected if it is idle for 600 seconds
  • Use /sbin/ifconfig to check wether the ppp0 interface exists
  • Use /usr/sbin/traceroute www.sciencedirect.com to check wether VPN is used for access to this site
  • To use VPN for all connections see: