Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
tutorials:vpn [2012/01/08 23:06]
memnon Fix links
tutorials:vpn [2012/05/02 17:51]
memnon minor formatting fixes
Line 62: Line 62:
  
   - Make sure PPP and PPTP are installed. The can be accomplished in Debian or Ubuntu by entering '​**sudo apt-get install pptp-linux**'​ into a terminal.   - Make sure PPP and PPTP are installed. The can be accomplished in Debian or Ubuntu by entering '​**sudo apt-get install pptp-linux**'​ into a terminal.
-  - Create a file named sdfpptp in /​etc/​ppp/​peers by entering '​**sudo gedit /​etc/​ppp/​peers**'​. Replace gedit with your choice of text editor. Add the following to the file: (Be sure to replace **//​username//​** with your username.)\\ \\  Note: Make sure to replace **//IP Address//** with the IP address/​hostname provided when running '​**setvpn**'​ in the shell.\\+  - Create a file named sdfpptp in /​etc/​ppp/​peers by entering '​**sudo gedit /​etc/​ppp/​peers**'​. Replace gedit with your choice of text editor. Add the following to the file: (Be sure to replace **//​username//​** with your username.)\\ \\  Note: Make sure to replace **//IP Address//** with the IP address/​hostname provided when running '​**setvpn**'​ in the shell.\\ ​<​code>​
     remotename sdfpptp     remotename sdfpptp
     linkname sdfpptp     linkname sdfpptp
Line 81: Line 81:
     bsdcomp 9,15     bsdcomp 9,15
     deflate 9,15     deflate 9,15
-    idle 0+    idle 0 </​code>​
   - Save the file.   - Save the file.
   - Edit /​etc/​ppp/​chap-secrets by entering '​**sudo gedit /​etc/​ppp/​chap-secrets**'​. Add the line **//​username//​ stfpptp //​password//​ *** replacing //​username//​ and //​password//​ with your SDF username and your password set by **'​setvpn'​**.   - Edit /​etc/​ppp/​chap-secrets by entering '​**sudo gedit /​etc/​ppp/​chap-secrets**'​. Add the line **//​username//​ stfpptp //​password//​ *** replacing //​username//​ and //​password//​ with your SDF username and your password set by **'​setvpn'​**.
Line 89: Line 89:
  
 Alternatively to steps 5 and 6, you might use a wrapper script like this:\\ Alternatively to steps 5 and 6, you might use a wrapper script like this:\\
 +<code bash>
   #!/bin/bash   #!/bin/bash
   SDFVPNHOST=**//​IP Address//**   SDFVPNHOST=**//​IP Address//**
Line 100: Line 100:
   ip route del $SDFVPNHOST via $VIA dev $DEV   ip route del $SDFVPNHOST via $VIA dev $DEV
   ip route del $SDFVPNHOST via $VIA dev $DEV table sdftun   ip route del $SDFVPNHOST via $VIA dev $DEV table sdftun
 +</​code>​
  
  This automatically detects the default gateway and adds appropriate routes, starts the VPN and deletes the routes after VPN has been stopped. If you do not use a custom routing table dedicated to the SDF VPN you should delete the lines ending in "table sdftun"​.\\  This automatically detects the default gateway and adds appropriate routes, starts the VPN and deletes the routes after VPN has been stopped. If you do not use a custom routing table dedicated to the SDF VPN you should delete the lines ending in "table sdftun"​.\\