Difference between revisions of "Vpn linux"

From Cncz
Jump to: navigation, search
Line 45: Line 45:
  
 
/sbin/route add -net www.sciencedirect.com netmask 255.255.255.255 dev ppp0
 
/sbin/route add -net www.sciencedirect.com netmask 255.255.255.255 dev ppp0
 +
 +
=== Notes ===
 +
[nl]
 +
* In /etc/ppp/options staat default "idle 600". Een VPN connectie wordt verbroken als ze 600 seconden niet wordt gebruikt
 +
* Met /sbin/ifconfig kun je zien het ppp0 interface bestaat
 +
* Gebruik /usr/sbin/traceroute www.sciencedirect.com om te zien of VPN gebruikt wordt voor toegang tot de betreffende site
 +
* Om al de verbindingen via vpn te laten lopen zie:
 +
[/nl]
 +
[en]
 +
* 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:
 +
[/en]
 +
http://pptpclient.sourceforge.net/routing.phtml
  
 
== PPTP VPN in openSuSE 11.2 ==
 
== PPTP VPN in openSuSE 11.2 ==
Line 70: Line 85:
 
[/en]
 
[/en]
  
=== Notes ===
+
 
[nl]
 
* In /etc/ppp/options staat default "idle 600". Een VPN connectie wordt verbroken als ze 600 seconden niet wordt gebruikt
 
* Met /sbin/ifconfig kun je zien het ppp0 interface bestaat
 
* Gebruik /usr/sbin/traceroute www.sciencedirect.com om te zien of VPN gebruikt wordt voor toegang tot de betreffende site
 
* Om al de verbindingen via vpn te laten lopen zie:
 
[/nl]
 
[en]
 
* 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:
 
[/en]
 
http://pptpclient.sourceforge.net/routing.phtml
 
  
  
 
[[Category:Internet]]
 
[[Category:Internet]]

Revision as of 22:50, 6 April 2010

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:

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

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

/sbin/route add -net www.sciencedirect.com netmask 255.255.255.255 dev ppp0

Notes

  • 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:

http://pptpclient.sourceforge.net/routing.phtml

PPTP VPN in openSuSE 11.2

  • Click on the network manager in in the systemtray and select 'manage connections'.
  • Open the tab that says 'VPN' and click add > pptp.
  • Fill in a connection name, for example 'Radboud'.
  • Gateway is vpn-srv.science.ru.nl.
  • Username and password are your standard for the science.ru.nl domain.
  • (The IP address tab should say 'Configure: Automatic (VPN)'.)
  • Click the 'advanced' button and enable 'use MPPE encryption'.
  • Click 'ok' everywhere to close the menus. The vpn connection is now configured and should be available in the

list of the network manager in the system tray.