Kepada Blogger IT, Teknologi atau Berkaitan Dunia Teknologi, Mari Bertukar Link Dengan Blog ini



Translate

Thursday, June 20, 2013

How to setup a VPN Server & Client




How to setup a VPN Server


Ok, so you want to setup a VPN Server, 1st you have to think what OS, Internet Connection (and method, i.e. router or modem on a pc) and a few other things.
First off this tutorial is for Windows XP only.

The Steps

1)On the computer which you want to be the Server (the one people will dial into) go to the Control Panel as shown below.

 

2)Go to the Network Connection in the Control Panel, as shown below.

 

3)Now on the left hand side in the Common Task Box, there is a section “Network Tasks”. Click on this option.

 

4)This will start the wizard to make the VPN connection (server side) Click Next. As shown below.

 

5)On the next Page Select the “Set up an advanced connection” and click Next.

 

6)On this page Select “Accept incoming connections” and click Next.

 

7)On this page click Next. Don’t worry if it says “Direct Parallel” this wont be used.

 

8)Select the option “Allow virtual private connections” and click Next once again.

 

9)Now you are going to need to create an account which will be used for connecting to the server. This is done by clicking the Add button and following step 10.

 

11)This is the setup for adding the user that will be used to access the VPN.

 

12)This screen will give the options for the Allocation of IP addresses from the people that are connecting. To do this click on the “Internet Protocol” and click “Properties”.

 

13)On my network I know that IP addresses over 200 are free, so I have selected the range 192.168.1.201-192.168.1.220. If you are running a DHCP server you can let it specify the addresses. If in doubt specify manually as it can be changed later and click OK and click Next on the Window shown .

 

14)Now click Finish to Finish the Wizard.

 

15)If you go back to the “Network Connections” page you can see that there is an icon for “Accept Incoming Connections”.



And that’s the Server Connection all done  

Firewall and Router Notes.

The previous bit was the easy bit. First if you are using a Modem and are going to be connecting directly to the computer the modem is on Skip forward a bit. If you are using a Router however this is a different matter, you can do 2 things.

1)Forward the specific ports to the desired Server (Look at the Firewall Section for ports etc.).
2)Set the DMZ(Demilitarized Zone) to the Desired Server. (This means that every connection will be forwarded directly to that PC, which brings me onto the firewall)

Firewall

I use Sygate firewall and here is a tutorial for allowing the correct ports to be allowed and not blocked by the firewall. I’m sure this tutorial could be modified to the certain firewall you are using, if any.

1)Start Sygate and go to the “Advance Rules and Configuration”.
2)Click Add
3)In the General Tab Name the Rule and select “Allow this traffic”
4)Select the Applications Tab
5)Check NTOSKRNL.EXE and TCP/IP Services Application
6)Click OK

7)Click Add
8)In the General Tab Name the Rule and select “Allow this traffic”
9)Select the Ports & Protocols Tab
10)Select TCP in the drop down box
11)Leave the remote box bland, and fill the local box with “135,500,1701,1723” Opening these ports can be dangerous, only open them if you can't get a connection made!
12)Click OK

13)Click Add
14)In the General Tab Name the Rule and select “Allow this traffic”
15)Select the Ports & Protocols Tab
16)Select UDP in the drop down box
17)Leave the remote box bland, and fill the local box with “135,500,1701,1723”
18)Click OK

19)Click Add
20)In the General Tab Name the Rule and select “Allow this traffic”
21)Select the Host Tab
22)Select IP Address and type in your VPN Server address.
23)Click OK

End Server Part


Client Part
How to setup a VPN Client

1)Go to the control panel as shown below.



2) Double click on “Network Connections” as shown below.



3) Now on the left hand side in the Common Task Box, there is a section “Network Tasks”. Click on this option.



4) This will start the wizard to make the VPN connection (server side) Click Next. As shown below.

 

5) Select “Connect to the network at my workplace” and click Next

 

6)Select “Virtual Private Network Connection” and click Next.

 

7) Type in a company name for the connection and cluck next.

 

8)If you need to dial a connection to get internet access please select Automatically dial this initial connection OR just leave it on “Do not dial the initial connection.” And click Next.

 

9)Now enter the IP address or Hostname of the VPN Server and click Next.

 

10) Now click Finish.

 

11) The Connect box will appear where you can enter the details for the username and password which were set for the VPN server. From there click Properties.

 

12) Click the networking Tab and select the properties of the Internet Protocol TCP/IP.

 

13) Click Advanced.

 

14) Untick “Use Default gateway on remote network.” And click OK all the way back to the dialup box. – IF YOU DON’T DO THIS IT MAY CRASH YOUR NETWORK CONNECTION.



15) Now you can dial the connection. Once this has connected you should be linked to the other network, you may not be able to type \\server for example however if you go to Start – Search and select “Computers or People” then “a computer on the network” and type the server name in there you should be able to find it ok.

No comments:

Post a Comment




Popular Posts Blog IT Segment

Recommended Post Slide Out For Blogger
Related Posts Plugin for WordPress, Blogger...

Rakan Bersama

Blogger tricks and toolz