User Tools

Site Tools


connecting_to_the_sdf_vpn_with_pptp

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
connecting_to_the_sdf_vpn_with_pptp [2021/03/12 18:34] – [The wrap-up] hc9connecting_to_the_sdf_vpn_with_pptp [2021/04/02 07:53] hc9
Line 49: Line 49:
  
   - 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> 
-<code> +remotename sdfpptp 
- +linkname sdfpptp 
-   remotename sdfpptp +ipparam sdfpptp 
-   linkname sdfpptp +pty "pptp --loglevel 0 **//IP Address//** --nolaunchpppd" 
-   ipparam sdfpptp +name **//username//** 
-   pty "pptp --loglevel 0 **//IP Address//** --nolaunchpppd" +refuse-eap 
-   name **//username//** +refuse-pap 
-   refuse-eap +refuse-chap 
-   refuse-pap +refuse-mschap 
-   refuse-chap +require-mppe 
-   refuse-mschap +nomppe-stateful 
-   require-mppe +require-mppe-128 
-   nomppe-stateful +nomppe-40 
-   require-mppe-128 +noauth 
-   nomppe-40 +nodetach 
-   noauth +lock 
-   nodetach +bsdcomp 9,15 
-   lock +deflate 9,15 
-   bsdcomp 9,15 +idle 0
-   deflate 9,15 +
-   idle 0 +
 </code> </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 81: Line 77:
   - Open another terminal. Enter '**sudo route add -net 192.94.73.0/24 dev ppp0**'. This will route all your connections to SDF through the VPN.   - Open another terminal. Enter '**sudo route add -net 192.94.73.0/24 dev ppp0**'. This will route all your connections to SDF through the VPN.
  
-Alternatively to steps and 4, you might use a wrapper script like this:+Alternatively to steps and 6, you might use a wrapper script like this:
  
   #!/bin/bash   #!/bin/bash
Line 110: Line 106:
 Once installed, restart the NetworkManager service (///etc/init.d/NetworkManager restart//) and left-click on the network manager icon in your taskbar. Highlight **VPN Connections** and click on **Configure VPN**: Once installed, restart the NetworkManager service (///etc/init.d/NetworkManager restart//) and left-click on the network manager icon in your taskbar. Highlight **VPN Connections** and click on **Configure VPN**:
  
-{{http://sdf.org/tutorials/images/vpn1.png|Network Manager - Overview Settings}}\\ {{http://sdf.org/tutorials/images/vpn4.png|Network Manager - VPN Settings Overview}}+{{ :vpn_with_pptp:vpn1.png?nolink |Network Manager - Overview Settings}} 
 +{{ :vpn_with_pptp:vpn4.png?nolink |Network Manager - VPN Settings Overview}}
  
 Click on the **Add** button, and choose **Point-to-Point Tunneling Protocol (PPTP)**, then click **Create**. Fill out the **User name**, **Password** and **Gateway** fields with appropriate values ([[#setup|from when you ran //setvpn//]]): Click on the **Add** button, and choose **Point-to-Point Tunneling Protocol (PPTP)**, then click **Create**. Fill out the **User name**, **Password** and **Gateway** fields with appropriate values ([[#setup|from when you ran //setvpn//]]):
connecting_to_the_sdf_vpn_with_pptp.txt · Last modified: 2021/04/02 07:56 by hc9