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
connecting_to_the_sdf_vpn_with_pptp [2024/09/01 20:13] – “** hc9connecting_to_the_sdf_vpn_with_pptp [2024/09/02 22:12] (current) – ' hc9
Line 9: Line 9:
 The SDF VPN is quite easy to set up. You must first choose a VPN plan that is right for you, based on assumed bandwidth usage. Pricing and more package information is available through the shell by typing ‘**vpn**’ without the quotes. The SDF VPN is quite easy to set up. You must first choose a VPN plan that is right for you, based on assumed bandwidth usage. Pricing and more package information is available through the shell by typing ‘**vpn**’ without the quotes.
  
-Once you've been added to the VPN membership level (youll receive an email notification of this), you must set up your VPN access by typing ‘**setvpn**’ in the shell, without quotes. This will allow you to configure your VPN secret (password) for connecting.+Once you've been added to the VPN membership level (you'll receive an email notification of this), you must set up your VPN access by typing ‘**setvpn**’ in the shell, without quotes. This will allow you to configure your VPN secret (password) for connecting.
  
-You should make note of the VPNs IP address when setting up your secret.+You should make note of the VPN's IP address when setting up your secret.
  
-Once you've configured your VPN account, its time to connect. Continue reading below for step-by-step instructions on connecting to the VPN.+Once you've configured your VPN account, it's time to connect. Continue reading below for step-by-step instructions on connecting to the VPN.
  
 ===== Connecting in Windows XP ===== ===== Connecting in Windows XP =====
Line 25: Line 25:
   - Choose an option on the “**Public Network**” screen and click “**Next**”. The default option, “**Automatically dial this initial connection**” can be used if the VPN connection will always be initiated when the computer is not already connected to the Internet. Otherwise, choose the “**Do not dial the initial connection**” option. This requires that the public Internet connection be established first, before this new VPN connection will be initiated. **Choose this option.**   - Choose an option on the “**Public Network**” screen and click “**Next**”. The default option, “**Automatically dial this initial connection**” can be used if the VPN connection will always be initiated when the computer is not already connected to the Internet. Otherwise, choose the “**Do not dial the initial connection**” option. This requires that the public Internet connection be established first, before this new VPN connection will be initiated. **Choose this option.**
   - Enter the IP address for the VPN on the “**VPN Server Selection**” screen. This is obtained via the ‘**setvpn**’ command (without quotes) in the shell.   - Enter the IP address for the VPN on the “**VPN Server Selection**” screen. This is obtained via the ‘**setvpn**’ command (without quotes) in the shell.
-  - Choose an option on the “**Connection Availability**” screen and click “**Next**”. The default option, “**My Use Only**”, ensures that Windows will make this VPN connection available only to the user that is currently logged in to the computer. If you don't want this, select the “**Anyones use**” option.+  - Choose an option on the “**Connection Availability**” screen and click “**Next**”. The default option, “**My Use Only**”, ensures that Windows will make this VPN connection available only to the user that is currently logged in to the computer. If you don't want this, select the “**Anyone's use**” option.
   - Click “**Finish**” to complete the wizard. You may wish to select the option to create a desktop shortcut for easy access. The information for the VPN connection will be saved for current and/or future use.   - Click “**Finish**” to complete the wizard. You may wish to select the option to create a desktop shortcut for easy access. The information for the VPN connection will be saved for current and/or future use.
  
Line 33: Line 33:
  
   - Click on the “**Start**” button and then choose “**Connect to**”.   - Click on the “**Start**” button and then choose “**Connect to**”.
-  - Click on the “**Set up a connection or network**” option on the window that follows. Its near the bottom. +  - Click on the “**Set up a connection or network**” option on the window that follows. It's near the bottom. 
-  - On the window that comes up, scroll down and click on the "**Connect to a workplace**option. Then click "**Next**"+  - On the window that comes up, scroll down and click on the **Connect to a workplace**” option. Then click **Next**
-  - A question asking "**Do you want to use a connection you already have?**may appear. Select "**No, create a new connection.**if it does and then click "**Next**"+  - A question asking **Do you want to use a connection you already have?**” may appear. Select **No, create a new connection.**” if it does and then click **Next**
-  - Next you'll be asked "**How do you want to connect?**Select "**Use my Internet connection (VPN)**"+  - Next you'll be asked **How do you want to connect?**” Select **Use my Internet connection (VPN)**
-  - You'll then be asked for the Internet address. Enter the address you remembered when accessing '**setvpn**(without quotes) in the SDF shell. +  - You'll then be asked for the Internet address. Enter the address you remembered when accessing **setvpn**’ (without quotes) in the SDF shell. 
-  - Enter a name for this VPN connection in the "**Destination name:**field. This is how Windows Vista will reference the VPN. +  - Enter a name for this VPN connection in the **Destination name:**” field. This is how Windows Vista will reference the VPN. 
-  - If you don't want to connect immediately, check the "**Do not connect now; just set it up so I can connect later.**option. +  - If you don't want to connect immediately, check the **Do not connect now; just set it up so I can connect later.**” option. 
-  - Do not check the "**Use a smart card.**option. +  - Do not check the **Use a smart card.**” option. 
-  - When finished, click "**Next**" +  - When finished, click **Next** 
-  - You'll then configure the username and password needed to authenticate to the VPN. The username is your SDF username and the password is the secret you set up via the '**setvpn**command in the shell. +  - You'll then configure the username and password needed to authenticate to the VPN. The username is your SDF username and the password is the secret you set up via the **setvpn**’ command in the shell. 
-  - Leave the "**Domain**field blank. +  - Leave the **Domain**” field blank. 
-  - Click the "**Create**button once you are done. You should then see a window pop up saying that "**The connection is ready to use.**Click on "**Close**".+  - Click the **Create**” button once you are done. You should then see a window pop up saying that **The connection is ready to use.**” Click on **Close**.
  
 ===== Connecting in Linux ===== ===== Connecting in Linux =====
  
-  - 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.) +  - 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>+    - 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 72: Line 72:
 </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**. 
-  - Make sure a specific route to the VPN exists. Run '**sudo route add **//VPN-IP//** gw **//GW-IP//****replacing **//VPN-IP//** with the IP address/hostname provided when running '**setvpn**', and replace **//GW-IP//** with your gateway IP address. If you do not know the IP address of your gateway, enter '**route**'. It is the gateway IP next to the destination **default**. +  - Make sure a specific route to the VPN exists. Run **sudo route add **//VPN-IP//** gw **//GW-IP//****’ replacing **//VPN-IP//** with the IP address/hostname provided when running **setvpn**, and replace **//GW-IP//** with your gateway IP address. If you do not know the IP address of your gateway, enter **route**. It is the gateway IP next to the destination **default**. 
-  - Enter '**sudo pppd call sdfpptp**into a terminal. Wait for it to show the local and remote IP addresses. You should now be connected. Do not close the terminal until you are ready to disconnect. +  - Enter **sudo pppd call sdfpptp**’ into a terminal. Wait for it to show the local and remote IP addresses. You should now be connected. Do not close the terminal until you are ready to disconnect. 
-  - 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 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:
Line 106: 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**:
  
-{{ :vpn_with_pptp:vpn1.png?nolink |Network Manager Overview Settings}} +{{ :vpn_with_pptp:vpn1.png?nolink |Network Manager – Overview Settings}} 
-{{ :vpn_with_pptp:vpn4.png?nolink |Network Manager VPN Settings Overview}}+{{ :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//]]):
Line 188: Line 188:
   * Now, as root, run mpd4 sdfvpn.   * Now, as root, run mpd4 sdfvpn.
   * You should now be connected to SDF over a layer 3 tunnel across the Internet.   * You should now be connected to SDF over a layer 3 tunnel across the Internet.
-  * Your new routes are only for SDF's hosts, and use their internal IP addresses. These are the 10.0.0.x ones. I'm working on how to route to the public ones over the VPN without creating a routing loop to the VPN host. I copied SDF's /etc/hosts file to my machine so that I can run 'ssh sdf1to connect through the tunnel.+  * Your new routes are only for SDF's hosts, and use their internal IP addresses. These are the 10.0.0.x ones. I'm working on how to route to the public ones over the VPN without creating a routing loop to the VPN host. I copied SDF's /etc/hosts file to my machine so that I can run ssh sdf1’ to connect through the tunnel.
  
 ===== Connecting in Mac OS X ===== ===== Connecting in Mac OS X =====
Line 194: Line 194:
   - Open /Applications/Internet Connect.app   - Open /Applications/Internet Connect.app
   - Click on the **VPN** button.   - Click on the **VPN** button.
-  - Click on the Configuration dropdown and go to "**Edit Configurations...**"+  - Click on the Configuration dropdown and go to **Edit Configurations...**
   - Press the **+** button at the bottom left of the window to add a configuration.   - Press the **+** button at the bottom left of the window to add a configuration.
-  - Under "**Description**put whatever you want. SDF VPN is a good choice. +  - Under **Description**” put whatever you want. SDF VPN is a good choice. 
-  - Under the "**Server Address**," Enter the IP address for the VPN on the "**VPN Server Selection**screen. This is obtained via the '**setvpn**command (without quotes) in the shell. +  - Under the **Server Address**," Enter the IP address for the VPN on the **VPN Server Selection**” screen. This is obtained via the **setvpn**’ command (without quotes) in the shell. 
-  - Under Username put your SDF username and the password is the secret you set up via the '**setvpn**command in the shell. +  - Under Username put your SDF username and the password is the secret you set up via the **setvpn**’ command in the shell. 
-  - Choose "**Automatic**encryption. +  - Choose **Automatic**” encryption. 
-  - Click "**OK**"+  - Click **OK**
-  - Then, whenever you want to connect you can return to this **Internet Connect Application** and go to the VPN, choose the SDF VPN and click connect. Optionally, you can click "**Show VPN status in the menu bar**and you can connect to the VPN from the menu bar icon.+  - Then, whenever you want to connect you can return to this **Internet Connect Application** and go to the VPN, choose the SDF VPN and click connect. Optionally, you can click **Show VPN status in the menu bar**” and you can connect to the VPN from the menu bar icon.
  
 ===== Connecting On An iPad ===== ===== Connecting On An iPad =====
  
-  - Log into SDF and run the 'setvpncommand. +  - Log into SDF and run the setvpn’ command. 
-  - Hit 'pto set up your password.+  - Hit p’ to set up your password.
   - Enter your password twice. The password must be 14 characters or less, and ideally should contain letters, numbers, upper and lower case, and a special symbol, though there are no actual complexity requirements.   - Enter your password twice. The password must be 14 characters or less, and ideally should contain letters, numbers, upper and lower case, and a special symbol, though there are no actual complexity requirements.
   - After you have set up your password, the setvpn wizard will tell you what IP address to connect to. It will be 192.94.73.X. Write this whole IP address down. You will need it in a later step.   - After you have set up your password, the setvpn wizard will tell you what IP address to connect to. It will be 192.94.73.X. Write this whole IP address down. You will need it in a later step.
-  - Hit 'qto exit the configuration.+  - Hit q’ to exit the configuration.
   - Turn on your iPad and go to the Settings.   - Turn on your iPad and go to the Settings.
   - Go into the Network subsection.   - Go into the Network subsection.
-  - Go into the VPN subsection. This will bring up the 'Add Configurationwindow.+  - Go into the VPN subsection. This will bring up the Add Configuration’ window.
   - Select "PPTP" at the top.   - Select "PPTP" at the top.
-  - In the Description field, label this connection something useful to identify it, such as 'SDF VPN'+  - In the Description field, label this connection something useful to identify it, such as SDF VPN'
-  - In the 'Serverfield, put in the IP address that you wrote down earlier. +  - In the Server’ field, put in the IP address that you wrote down earlier. 
-  - In the 'accountfield, put your SDF user name. +  - In the account’ field, put your SDF user name. 
-  - In the 'Passwordfield, put the password that you set up while running the setvpn wizard in the set above. This will cause the iPad to remember your password for you. If you wish to type it in each time you connect, leave this field blank. +  - In the Password’ field, put the password that you set up while running the setvpn wizard in the set above. This will cause the iPad to remember your password for you. If you wish to type it in each time you connect, leave this field blank. 
-  - Set the encryption level to 'Maximum' +  - Set the encryption level to Maximum' 
-  - Leave the 'Send All Trafficslider set to 'On', unless you specifically want to (and know how to) set up VPN usage in individual applications. +  - Leave the Send All Traffic’ slider set to On', unless you specifically want to (and know how to) set up VPN usage in individual applications. 
-  - Hit the 'Savebutton at the top +  - Hit the Save’ button at the top 
-  - To turn on VPN, slide the VPN slider to 'Onfor the connection called SDF and open the browser. Connect to http://whatsmyip.org and verify that the IP address it shows as your source.+  - To turn on VPN, slide the VPN slider to On’ for the connection called SDF and open the browser. Connect to http://whatsmyip.org and verify that the IP address it shows as your source.
  
 ===== The wrap-up ===== ===== The wrap-up =====
connecting_to_the_sdf_vpn_with_pptp.1725221615.txt.gz · Last modified: 2024/09/01 20:13 by hc9