Virtual Private Network

6.1 Introduction

VPN stands for Virtual Private Network. A VPN uses the Internet as it's transport mechanism, while maintaining the security of the data through authentication and encryption. The most common configuration is to have a single main internal network with remote nodes using VPN to gain full access to the central net. The remote nodes are commonly remote offices or employees working from home. You can also link two small (or large) networks to form an even larger single network.

Remote users are authenticated using either PPTP or IPSec protocols against a user/password list maintained in the Rainmail Server. To create a virtual private network connection across the Internet, you must first set up two Dial-Up Networking connections. One connection is for your Internet access provider (vsnl) , and the other is for your corporate network (vpn).

To see if your Windows machine is capable of making PPTP VPN call is go to My Computer > >Control Panel >> Network.  Check and see if there is a device called Microsoft Virtual Private Networking Adapter. Another device under Network Adapter category should be found as well called Dial Up Adapter (VPN Support). If you have a modem in the machine, this device will be shown as Dial Up Adapter #2 (VPN Support). If those two devices are not found in the machine, then please download and install Microsoft Dial-Up Networking (DUN) 1.4. Or if you already have the latest Dial Up Networking which includes Virtual Private Networking then you may only need to Install the VPN Adapter. 

To configure VPN to connect to your VPN server, go to the My Computer folder, then Dial Up Networking. Double click on "Make New Connection". There should already be icons in this folder which are for your existing connections to your ISP. If you don't already have any connections set up, you cannot use VPN.

6.2 Installing PPTP-VPN Dialer

To start with you will have to install a VPN dialer, configure it and then connect to the virtual private network via your VPN dialer. The instructions below allow your roaming users to connect to your PPTP VPN Server.

  1. Click Start >> Settings>> Control Panel.

  2. Double Click Network Icon to open the Network window.

    [Image]

  3. Click the Configuration Tab, then click the Add button to open the Select Network Component Type window. Here, choose Adapter and click Add, to open the Select Network Adapters window.

    [Image]

  4. Choose Microsoft from the Manufacturer's List Box and Network Adapter as Microsoft Virtual Private Networking Adapter from the list. Click OK.

    [Image]

  5. Again, choose Adapter and click Add, to open the Select Network Component Type window.

    [Image]

  6. Choose Microsoft from the Manufacturer's List Box and Network Adapter as Dial-Up Adapter. Click OK.

    [Image]

  7. Wait for the System Settings Change dialog box to appear and click Yes to restart the machine and the settings to take effect.

    [Image]

     

  1. Double Click MyComputer >>Dial-Up Networking>>Make a new Connection to open the New Connection window.

    [Image]

  2. Enter vpn in the Type a name for the computer you are dialing text box and select device as Microsoft VPN Adapter. Click Next.

    [Image]

  3. Enter VPN Server IP address in the Host name or IP Address field. This is the same as public IP address of Rainmail Server (in this example 203.199.245.254). Click Next.

    [Image]

  4. Click Finish.

    [Image]

  5. You will find a VPN Dial-Up Networking connection icon, the vpn dialer.

    [Image]

6.3 Configuring VPN Dialer

  1. Right Click the vpn dialer and choose Properties.

    [Image]

  2. In the Server Types Tab click TCP/IP Settings button to open the TCP/IP Settings window.

    [Image]

  3. Choose Server assigned IP address and Server assigned name server addresses Option buttons. Click OK.

    [Image]

6.4 Connecting to VPN

  1. Connect to your ISP first.

  2. Then in the Dial-Up Networking window double click vpn connection icon.

    [Image]

  3. Enter the User name and the Password and the VPN Server address.

    [Image]

  4. Click Connect to get connected.

    [Image]

6.5 Testing VPN

To check if the connection is through, ping the connection or type ipconfig command in the command window.

6.6 Installing IPSEC-VPN Dialer for Windows98

Note:
To see if your Windows machine is capable of making IPSEC VPN call, go to My Computer > Control Panel > Network.  Check and see if there is a device called Microsoft L2TP/IPSec VPN Adapter. Another device under Network Adapter category should be found as well called Dial Up Adapter (VPN Support). If you have a modem in the machine, this device will be shown as Dial Up Adapter #2 (VPN Support). If those two devices are not found in the machine, then please download and install
Microsoft IPSec VPN Client for Windows 98. Or if you already have the latest Dial Up Networking which includes IPSEC Virtual Private Networking then you may only need to Install the VPN Adapter.
.
  1. Double Click MyComputer >>Dial-Up Networking.

  2. In the Dial-Up Networking window that opens click Make a New Connection to open the Make New Connection window.

    [Image]

  3. Give the VPN connection a name. Here enter "vpnipsec" in the text box. In the Device box, set the device to Microsoft L2TP/IPSec VPN Adapter. Click on Next to continue.

    [Image]

  4. Now enter the address of the VPN Server. This is the same as the public IP address of Rainmail Server (in this example 203.199.245.254). Click on Next to continue.

    [Image]

  5. Your connection has been created. Click Finish.

    [Image]

  6. You will find a VPN Dial-Up Networking connection icon, the vpnipsec dialer.

    [Image]

  7. Now right click on your vpnipsec icon and select Properties .


  8. Now click on the Server Types tab. Disable IPX/SPX Compatible and NetBEUI, then click on TCP/IP Settings.

    [Image]

  9. In the TCP/IP Settings window ensure the settings match the picture below. Click on OK when you're done.


  10. To configure your computer to use a pre-shared key,click Start, point to Programs, point to Microsoft IPSec VPN, and click Microsoft IPSec VPN Configuration .

    1. Click Use a pre-shared key for IPSec authentication.

    2. Type or paste the pre-shared key in Type or paste a pre-shared key in the box below, and click OK.

    3. Although the pre-shared key appears in clear text as you type it in, it will appear only as asterisks after you click OK.



  11. Connect to your ISP first.

  12. Then in the Dial-Up Networking window double click vpnipsec connection icon.

  13. To connect, in the User name field enter your user name. Now enter your password in the Password field. Depending on your company's security policy you may want to remove the tick on the Save Password checkbox. Click on the Connect button when ready.


6.7 Configuring Windows 2000 VPN Connection using Certificates



  • Create a IPSEC + Certificates MMC

  1. Click on Start -> Run.


  2. Enter in MMC in the text field and click OK.


    Enter MMC


  3. Click on File (or Console) and select Add/Remove Snap-in.


    Select Add/Remove Snap-in


  4. Click on Add...


    Click on Add...


  5. Click on Certificates, then select Add.


    Add Certificates


  6. Select Computer Account and click on Next.


    Select Computer Account


  7. Select Local computer and click on Finish.


    Select Local Computer and Finish


  8. Scroll down to and click on IP Security Policy Management then click on Add.


    Add IP Security Policy Management


  9. Select Local Computer and click on Finish.


    Select Local Computer anf Finish


  10. Click Close.


    Click Close


  11. Click on OK.


    Click OK


  • Add the certificate

  1. Click the plus arrow by Certificates (Local Computer)





  2. Right-click Personal and click All Tasks then Import...





  3. Click Next.





  4. Type in the path to the .p12 file (or browse and select the file), and click Next.





  5. Type the export password, and click Next.





  6. Select Automatically select the certificate store based on the type of certificate and click Next.





  7. Click Finish, and say yes to any prompts that pop up.





  8. Click Ok.





  9. Save the current configuration as a file so you don't have to re-add the Snap Ins each time.





  10. Use the default name click Save.





  11. Exit MMC.





6.8 Configuring Windows XP VPN Connection



  1. Click Start -> Programs -> Accessories -> Communications

  2. Start the "New Connection Wizard".

  3. Click Next.





  4. Select Connect to the network at my workplace.





  5. Select Virtual Private Network connection.





  6. Enter a name for this connection.





  7. Enter the (external) IP address or hostname of your Linux server.





  8. Select either "do not dial" or "automatically dial" the initial connection.





  9. Complete the Connection Wizard.





  10. A "Connect To..." window will pop up. Click Properties.





  11. Verify the settings in the General tab. You entered these in the previous steps.





  12. Now select the Options tab.





  13. Select the "Security" tab. You will have to disable L2TP/PPP encryption . There are two different ways of doing this:

    1. Uncheck "Require data encryption".





    2. Or you could select "Advanced (custom settings)"





    3. and then add CHAP to the allowed protocols.




    4. Set data encryption to Optional.

    5. Then click OK.

  14. While still on the "Security" tab, click "IPsec Settings".




    1. Check Use pre-shared key for authentication.
    2. Enter the PSK (pre-shared key) for this user.
    3. This is the same PSK associated with the client's fixed IP address in /etc/ipsec.secrets on the Linux server
    4. Click OK.


  15. Select the Networking tab.




    1. Change the type of VPN to "L2TP IPSec VPN"
    2. Click OK.

  16. Select the Advanced tab.





  17. You're back at the "Connect To..." window.





    Enter the username and password .

  18. Click Connect.





<Back> <Table Of Contents> <Next>