Technology computers-hardware

How to Create a Virtual Private Network

    Windows XP/Vista VPN Creation

    • 1). Click "Start," "Settings," and then "Network Connections" and click on the "New Connection Wizard."

    • 2). Click "Next" and then select "Set up an advanced connection" before clicking "Next" again.

    • 3). Click on "Accept incoming connections" and click "Next" twice, skipping the next page of connection preferences until you can select "Allow virtual private connections." Click "Next."

    • 4). Add the user accounts that you would like to have the ability to connect. If you are just going to be transferring files from the office, then just add your home user account. Click "Next" until you can click "Finish" and complete the setup.

    • 5). If your computer is behind a router, you will need the forward the ports 1723, 500 and 50-51 so that you can connect remotely.

    Using OpenVPN

    • 1). Download OpenVPN from the company's website. Since it's open source, the software is free. One of the advantages of using OpenVPN is that it provides a graphical Windows client interface and support for every major operating system out there. You can use it on just about anything.

    • 2). Install the server software on the machine of your choice. With OpenVPN, it might be a good idea to have a dedicated server, but it's not required.

    • 3). Once installed, open a command prompt and move to the easy-rsa directory of your installation. Run the init-config batch file to move configuration files into place. Edit the vars files (vars.bat on Windows) and fill out all of the Key parameters.

    • 4). Initialize the PKI by runnings vars, clean-all, and then build-ca. On Linux, these will be prefaced with './' to run them. Note those are three separate commands. Run 'build-key-server server' to generate the key for your server's access.

    • 5). Build keys for your VPN users by running the script 'build-key clientname'. You can password protect these with build-key-pass as a substitute. Finally, run the 'build-dh' script to complete the setup process. If you are going to use the default configuration files, then you can start your VPN server now by running the command 'openvpn serverconfigfilenamehere.ovpn', otherwise, you will need to create your custom configuration files from the sample ones provided. Make sure port 1194 is open on your router if you are using the default configuration.

Leave a reply