Setting Up a Virtual Private Networkby Wei-Meng Lee, author of Windows XP Unwired03/09/2004 |
If you're out of the office and need to use a network resource such as a printer or file server, you're often out of luck. Unless you dial directly into the company's server, you won't be able to access network resources. Moreover, using a dialup line is not a cheap alternative (besides the slow speed), especially if you are overseas.
Your best bet is to use a Virtual Private Network (VPN), which allows you to establish a secure, encrypted connection to the office's network, using a public network such as the Internet. Using a VPN, you can work as though you are connected to your company's network, no matter where you are in the world.
There are two main types of VPNs:
User-to-Network
This type of VPN allows a client to use a VPN to connect to a secure network, such as a corporate intranet.Network-to-Network
This type of VPN connects two networks via a VPN connection. This effectively combines two disparate networks into one, eliminating the need for a Wide Area Network (WAN).
In this article I will explain the basics of VPNs and show you how to set up one yourself using Windows 2003 Server and Windows XP Professional.
Tunneling and VPN Protocols
|
Related Reading
Windows XP Unwired |
In a VPN, two computers communicate through a VPN tunnel. Tunneling is the process of encapsulating packets within other packets to protect their integrity and privacy during transit. A tunnel performs such tasks as encryption, authentication, packet forwarding, and masking of IP private addresses. Think of a tunnel as a private link between the two computers; whatever one sends to the other is only visible to the other, even though it is sent through a public network like the Internet.
If you're curious about what goes on under the hood of a VPN, there are three protocols you need to know about -- PPTP, L2TP, and IPSec.
Point-to-Point Tunneling Protocol (PPTP)
This was designed by Microsoft (and other companies) to create a secure tunnel between two computers. PPTP provides authentication and encryption services and encapsulates PPP packets within IP packets. It supports multiple Microsoft networking protocols such as LAN-to-LAN and dialup connections. However, it is proprietary and the encryption is weak.
Layer 2 Tunneling Protocol (L2TP)
This works like PPTP, except that it does not include encryption. L2TP was proposed by Cisco Systems and like PPTP, L2TP supports multiple networking protocols.
IPSec
This protocol addresses the shortcomings of L2TP by providing encryption and authentication of IP packets. As such, L2TP is often used together with IPSec to provide a secure connection.
PPTP and L2TP are among the most likely proposals as the basis for a new Internet Engineering Task Force (IETF) standard.
Setting Up a VPN Between Two Computers
In the following sections, I will illustrate how to set up a VPN host and client -- the host server using Windows 2003 Server and the client using Windows XP Professional.
On the Host Computer
Let's start with setting up the VPN host.
On the desktop, right-click on My Network Places.
Select Create a new connection.
On the New Connection Wizard window, select Set up an advanced connection (see Figure 1). Click Next.

Figure 1. Choosing the network connection type.Select Accept Incoming connections. Click Next.
In the next window, you can select the other devices to accept the incoming connection. Click Next.
Select Allow virtual private connections and click Next (see Figure 2).

Figure 2. Allowing a VPN connection.Select the users you want to allow to connect to your computer using the VPN connection (see Figure 3). Click Next.

Figure 3. Granting access rights to users.The next window allows you to install additional networking software for this connection (see Figure 4). After you choose your protocols and software, click Next.

Figure 4. Installing the networking software for the VPN connection.Click Next and then click Finish to complete the process.
On the Client
To configure Windows XP to connect to a VPN:
On the desktop, right-click on Network Connections.
Select Create a new connection.
Select Connect to the network at my workplace (see Figure 5). Click Next.

Figure 5. Selecting the network connection type.Select Virtual Private Network connection. Click Next.
Enter a name for the VPN connection (see Figure 6). Click Next.

Figure 6. Giving your VPN connection a name.Select "Do not dial the initial connection." Click Next.
Enter the IP address of the VPN server (see Figure 7). Click Next.

Figure 7. Specifying the IP address of the VPN host.Select My use only. Click Next.
Check the "Add a shortcut to this connection to my desktop" checkbox. Click Finish.
That's it! When the process is completed, an icon will be shown on the desktop (see Figure 8).

Figure 8. The icon for the VPN connection.
To connect to the VPN server, double-click on the icon and login with your user name information (see Figure 9). You can now work as though you were working on a computer in your office; most (if not all) of your network resources, such as file and print servers will be accessible.

Figure 9. Logging in to a VPN connection.
Tip
Resist the temptation to check the box titled Save this User Name and Password for the following users. If you enable this, your password will be saved on your computer, and if your computer is stolen or compromised, an attacker will be able to connect to the VPN and access everything it protects.
Problem with Proxy Servers
One common error you might encounter has to do with setting a proxy server in Internet Explorer. My ISP does not require me to use a proxy server when surfing the Web. But when I connect to the VPN server in my workplace, I am suddenly unable to connect to the Web. As it turned out, my company requires me to use a proxy server to connect to the Web. With the proxy server configured in IE, I am now able to connect to the Web (see Figure 10). Check with your network administrator for proxy information, and how to set it up.

Figure 10. Setting a proxy server for a VPN connection.
IPSec and PPTP Pass Through
Most routers support a feature known as "IPSec and PPTP pass through." You may need to enable that feature on your router; check its documentation for details.
IPSec and PPTP are security protocols that provide authentication and encryption over the Internet. The "pass through" feature of the router allows secure packets to flow through the router but the router itself does not perform any authentication or encryption operation.
IPSec works in two modes -- transport mode and tunnel mode. Transport mode secures IP packets from source-to-destination, whereas tunnel mode puts an IP packet into another packet that is sent to the tunnel's endpoint. Only tunnel mode (ESP) IPSec can be passed through.
Wei-Meng Lee (Microsoft MVP) http://weimenglee.blogspot.com is a technologist and founder of Developer Learning Solutions http://www.developerlearningsolutions.com, a technology company specializing in hands-on training on the latest Microsoft technologies.
Return to WindowsDevCenter.com.
Showing messages 1 through 34 of 34.
-
Help plz; Trying to Connet 2 LANs together thru the NET using VPN
2009-01-04 19:19:26 King ZZ [View]
-
Help plz; Trying to Connet 2 LANs together thru the NET using VPN
2009-01-04 19:17:13 King ZZ [View]
hi all,
Trying to connect 2 seperate LANs thru the net for gaming and file sharing, and for ease of use in general.
Computers..
BthomeHub-- wired to - 1 winxp (home edition)
-- wireless to - 2 winxp (home edition)
Huawei e169 usb modem(3 network)- huawei D100 router-- wired to - 1 winxp MCE (think its pro)
-- wireless to - 1 winxp MCE (think its pro)
3 network esure me that it will support vpn although it has a dynamic isp so i have to reset the ip each time i connect to the net from the hub.
what i have done so far...
1) set up server and client
2) configured an ip range to give the users on the new network
3) in the server i have ticked my user name and set a password (this changed my sign on password when i start windows aswell)
3a) i also added the other users on the other lan and my lan all with passwords
4) in the client settings under security tab i ticked off ''require data encription (disconnect if none)'' (incase it couldnt connect coz of that)
5) in the connections menu i now have a server ''incoming connections'' , i also created a client on here aswell (thought it might help lol)
6) when i go on windows firewall/advanced/network connections/settings(of a connection)
i can see 3 ticked boxes; A) incoming connections VPN (L2TP)-port 1701 UDP
;B) incoming connections VPN (PPTP)-port 1723 TCP
;C) ip security (IKE)-port 500 UDP
7)i read on a site that the usual ports vpn uses is 50, 51, 500, 1723.
7a) i opened them ports TCP&UDP on my windows firewal,
7b) same ports in my -hiawei D100/settings/virual server
7c) same ports in the bthomehub/advanced/aplication sharing/to the computer i was trying to connect to / from
7d) bthomehub firewall on standard - huawei D100 firewall off (it has ip filtering - but cant click it when firewall is off)
7e) i also opened 1701 UDP on windows Firewalls + bthomehub
What i can do...
0) the 1st thing we did (following a sites guide) BTHOMEHUB held a server (on comp) and HuaweiD100 was client (on comp) we opened the PPTP port and another port but i am unsure if we unblocked it properly but i could connect to my brothers computer on the BTHOMEHUB, in fact i think we disable both our hub firewalls including both our windows firwalls
1) i can connect the client to the server on my own computer
2) i can connect another computer on my Huawei LAN to the server on my computer
3) i can also do the same on the bthomehub LAN to a server i also made on the bthomehub LAN
4) we can also connect from a computer on BTHOMEHUB (client) to a computer on the Huawei D100 (server)
1-4) in all instances it states in 'network connections' 1 incoming connection and the user online
What i cant seem to do... (maby i can but dont realise it yet)
1) i cant connect more than one computers/ clients to a server
2) i cant have a client connect to my server and then try and connect my client to there server(or my server)
3) i look in 'network nieghbourhood/view workgroup computers. no extra computers, click up a level twice and nothing new
4) we have been able to see each other in age of empires when we 1st tried it under 0) above. but could not get in the game.
other info..
it seems to be connecting on PPTP but we cannot share folders or view each other in network nieghbourhood, or play games.
also it seems as though we can connect client behind BTHOMEHUB to server behind Huawei D100, but not vice versa any more. will have to check again.
Thanx for reading this far and hope you can help, or if you have had a problem hope this helps you but dont for get to help me and others.
but me especially lol.
Q2006@hotmail.co.uk PLEASE HELP HELP HELP HELP HELP.
-
Network-to-network VPN setup
2007-10-19 12:18:37 JimPrice [View]
This is our setup:
3 local networks in three towns. All networks are basic Windows networking - no server. All computers using Windows XP.
We want to connect the 3 networks using network-to-network VPN.
What hardware and software will we need?
-
What's the IP adress of my computer
2007-06-27 03:23:30 OmarAbid [View]
I m using ADSL connection and i want to know the IP adress of my internet connection
Any one have any idea -
port forwarding fr vpn
2007-09-26 20:24:57 vargesh [View]
i want to do port forwarding using my dsl service i have modems ip adress 192.168.1.1
how should i proceeed -
port forwarding fr vpn
2009-04-29 08:12:50 ali moti [View]
please tell what is your modem brand and details -
What's the IP adress of my computer
2007-09-26 20:24:36 vargesh [View]
i want to do port forwarding using my dsl service i have modems ip adress 192.168.1.1
how should i proceeed
-
need some help
2006-12-13 09:42:04 trini9378 [View]
i have a 2003 server. i need to know if anyone has any help on setting up a vpn. i want to know if i have to configure routing and remote access? and how do i do this behind a router which is the dhcp server.
-
need info
2006-12-05 14:43:43 trini9378 [View]
any help will be greatly appreciated
i have a static ip address on my router. i also have a 2003 server. i have the router acting as the dhcp server. i need help in configuring vpn to pass through the router. what steps do i need to do
-
Has anyone gotten VPN to work
2006-11-21 14:15:49 johnydii [View]
I am trying to connect a work station on one of internet to another work station on this side of internet. 1st window verifying user and password.
So I know computer is seeing my attempt.
2nd window is Disconnected
Error 528 The connection was terminated by remote computer before it could be completed. Click info.
I get VPN connection Authentication and data encryption page. It gives all sorts of info but no details.
-
VPN setup questions
2006-08-02 12:55:04 Affrosion [View]
I am helping my boss set up a VPN. He wants to access the intranet of the work office from his personal computer at home. Everything is WinXP. The intranet at the office has a linksys router being used. We set it up using the IP address that the ISP assigned to the router. The router is currently configured to allow PPTP connections. I am guessing were missing something as far as the router config goes. Any ideas anyone? -
VPN setup questions
2007-02-13 18:16:22 DonJohnston [View]
After the router is setip properly I want to access an internal network that starts with 192. This router is hooked up through a modem supplied by Time Warner cable
-
vpn connectivity problem
2006-08-01 04:45:38 ajeetv [View]
i had three pptp vpn policies while connecting with the first policy it is working fine but when i try to connect through second policy the first polict get disconnected only one policy at a time works i had winxp as os. -
vpn connectivity problem
2006-11-21 13:40:21 johnydii [View]
I am still trying to get a VPN from home computer to work computer.
I can get one from computer to computer on my home network.
I believe with Win Xp an 2K you can only have one connection at a time.
I wish MS would be a little more specific in their instructions.
What can I do What can't I do.
-
trouble linking up
2006-05-02 16:45:03 sprtsmom77 [View]
question: im in the us. i have a home network and i have been able to open my ports to allow frinds in the uk to access my pc. problem: i am unable to access thier pc. we all have windows xp. how can we provide a vpn that will allow us to share files up to 5gb. is there a way at all to do this? they have digital cable and cable internet but their cable box is there modem and has it own router plus the router they have for their network. thanks for any available help. -
trouble linking up
2006-06-30 03:27:57 lenwest [View]
If all you want to do is share certain folders/files on each computer, sign up for the free www.foldershare.com on each computer. It will allow a number of choices including synchronizing folders online. It works very well.
A more elaborate way to access each computer is to set up a VPN at both ends. This would need special routers (more expensive than the regular home variety). This would allow each to be on each other's home network - perhaps more than you intend.
-
Client and Host using same IP address
2006-03-09 22:14:22 victoria12502 [View]
Hello! I am using a Linksys router WRT54GS with the latest firmware 4.70.6 The IP address and the gateway for Virtual connection PPtP are the same, connected to VPN but cannot access any network resources. I already forwarded port 1723.
Please help. Thanks.
-
VPN Tunneling - 2 WinXP
2006-01-26 23:21:50 Andreas_SE [View]
Hello!
Great article, but I'm still a bit unfamiliar with the VPN setup and configuration.
Is the above guide applied as well to a situation like this.
Two computers, Windows XP Professionals, each connected to internet through ADSL Router. Both ADSL Routers obtain IP from ISP via DHCP.
Is it still possible to do the above?
All I want to do is create a secure connection between the two computers so that I can remotely work at one of them whenever I want, without having someone at the other computer to have to active a software or so... possible?
Thanks for anykind of help in understanding more!
--Andreas -
VPN Tunneling - 2 WinXP
2006-11-21 14:29:42 johnydii [View]
If you want to work remotely try realvnc.com
Put software on both computers setup with password and connection ports and then setup firewals and or routers to open ports to computers. It is fast!! -
VPN Tunneling - 2 WinXP
2006-11-02 04:15:16 Souluna [View]
hey ive got a similar situation,
i have a Server im using running XP PRO,
i want to get my pc (on the same router) and 3 of my friends all using DHCP enable Routers with different ISP's.. How do i set that up?
my 3 friends are all using XP Home and they just need to connect..
cheers
edensouluna@gmail.com -
VPN Tunneling - 2 WinXP
2006-11-02 04:08:21 Souluna [View]
hey ive got a similar situation,
i have a Server im using running XP PRO,
i want to get my pc (on the same router) and 3 of my friends all using DHCP enable Routers with different ISP's.. How do i set that up?
my 3 friends are all using XP Home and they just need to connect..
cheers
edensouluna@gmail.com -
VPN Tunneling - 2 WinXP
2006-10-12 15:25:06 Ampaw [View]
Well for starters, you mention that both computers has XP PRO, there for you can easily connect to either or by allowing remote access via XP, then it will be the same as if you were sitting in front of the pc you are connecting to.
May want to think about this since you are only dealing with 2 pc's.
There are 3rd party programs that will do the same thing for you, LogMeIn is a great one and does not cost anything.
Hope this helps. -
VPN Tunneling - 2 WinXP
2006-10-06 17:07:13 tciovacco [View]
try this software out go to www.logmein.com and sign up for their free logmein and download the software on both computers and then you can remotly use either of the computers from anywhere in the world over the internet... Its that easy and its great. I do alot of work for clients remotely and I find it one of the best out there.
let me know what you think... t.ciovacco@theimagefactory.net
-
VPN Tunneling - a Win 2K Professional & a Win XP
2006-02-24 23:40:30 VPN [View]
Hello,
I have a similar situation, to connect WinXP system to Win2K Professional using VPN tunneling.
The Win2K professional is a intranet client.
Both systems are connected to the net directly through 2 different broadband services.
Is it possible to connect them?
-
my vpn
2005-09-27 11:18:25 mr_hasseld [View]
Dear all
I have two computers in the house that are networked via cable.(there is no router involved) The main computer has a speedtouch usb modem dialup to wanadoo 2 mb broadband. I can surf happily on both pc's until I connect up to my companies vpn. The main computer that the dial up in on, is ok when I change the Internet explorer setting's to the companies proxy server address. However the second computer on my home network cannot communicate with the main computer, therfore I can use Internet explorer or file share.
Can anyone help with this?
-
Problem w/MSN Messenger When Connected to VPN
2005-09-11 09:18:04 tata4569 [View]
I used to have "use default gateway on remote network" checked and was able to use all of my network applications and MSN Messenger. About 1 month ago, MSN stopped working when connected to VPN. If I uncheck "use default gateway on remote network" then I can use MSN Messenger, but not some of my network applications. If I check "use default gateway on remote network" then I can use all of my network applications, but I cannot use MSN Messenger. The network administrators in the company I work for are looking into this problem, but have not been able to figure out what changed. Do you have any ideas?
Thanks,
tata4569 -
Problem w/MSN Messenger When Connected to VPN
2005-12-03 08:28:56 ratex [View]
I have this same problem. Did you get a resolution to this problem? Turning off the "use default gateway on remote newtwork" is not an option.
Thank you.
jbwarner@ratex.com
-
Client MSN failure
2005-07-27 20:43:07 Spirit02 [View]
from: http://www.smoothwall.net/support/faq/index5.php?c=vpn&id=233&view=y&typer=
Why do my clients loose their MSN Messenger connection when the L2TP connection is opened?
In the properties of the VPN connections TCP-IP settings, there is an option to "Use default gateway on remote network" enabled by default. Enabling this option means that all internet traffic goes through the L2TP tunnel and out to the internet. The client logs on to messenger using one IP address, but after connecting to the L2TP tunnel, the client IP address changes (As seen by MSN Messenger server) and the connection is broken.
Go into properties for the connection, networking tab, select internet protocol (tcp/ip), hit properties, click advanced, and untick the box.
-
using a router
2004-12-07 01:56:17 cocheese324 [View]
Is there anything special that you have to do if you're splitting a cable connection between 3 different computers for it to get to the right one?
Will any ports or anything have to be opened up on the router....and if so, how do I go about doing that?
THanks
-
vpn
2004-09-08 07:31:48 jnigwo [View]
please i need a tutorial that explains vpn technology configuration -
vpn
2006-05-29 06:37:52 pardomario [View]
How do I accomplish this A VPN between 2 computers at different geographycal locations and both after a Linsys Router. Both machines after the router are configured as a DHCP The router "gives" or "assigns" the IP's for each computer. Also the Internet Provider assigns the IP to the Router looking at the Cable Modem Connection.
The Linksys IP on the internal side is 192.169.1.1. (default) Its DHCP configuration atarts at 192.168.1.100 The first computer to log on at power up gets 192.168.1.100, the second gets 192.168.1.101 and so on.
Can I log onto a vpn network just by knowing the computer name and NOT its IP?
Thank You
-
VPN
2004-04-18 21:53:28 eks [View]
My office computer is looged to a Domain with private ip address from a DHCP server. Can i use my office computer as dial-up server given that i have a modem and a landline connected to my office computer










Trying to connect 2 seperate LANs thru the net for gaming and file sharing, and for ease of use in general.
Computers..
BthomeHub-- wired to - 1 winxp (home edition)
-- wireless to - 2 winxp (home edition)
Huawei e169 usb modem(3 network)- huawei D100 router-- wired to - 1 winxp MCE (think its pro)
-- wireless to - 1 winxp MCE (think its pro)
3 network esure me that it will support vpn although it has a dynamic isp so i have to reset the ip each time i connect to the net from the hub.
what i have done so far...
1) set up server and client
2) configured an ip range to give the users on the new network
3) in the server i have ticked my user name and set a password (this changed my sign on password when i start windows aswell)
3a) i also added the other users on the other lan and my lan all with passwords
4) in the client settings under security tab i ticked off ''require data encription (disconnect if none)'' (incase it couldnt connect coz of that)
5) in the connections menu i now have a server ''incoming connections'' , i also created a client on here aswell (thought it might help lol)
6) when i go on windows firewall/advanced/network connections/settings(of a connection)
i can see 3 ticked boxes; A) incoming connections VPN (L2TP)-port 1701 UDP
;B) incoming connections VPN (PPTP)-port 1723 TCP
;C) ip security (IKE)-port 500 UDP
7)i read on a site that the usual ports vpn uses is 50, 51, 500, 1723.
7a) i opened them ports TCP&UDP on my windows firewal,
7b) same ports in my -hiawei D100/settings/virual server
7c) same ports in the bthomehub/advanced/aplication sharing/to the computer i was trying to connect to / from
7d) bthomehub firewall on standard - huawei D100 firewall off (it has ip filtering - but cant click it when firewall is off)
7e) i also opened 1701 UDP on windows Firewalls + bthomehub
What i can do...
0) the 1st thing we did (following a sites guide) BTHOMEHUB held a server (on comp) and HuaweiD100 was client (on comp) we opened the PPTP port and another port but i am unsure if we unblocked it properly but i could connect to my brothers computer on the BTHOMEHUB, in fact i think we disable both our hub firewalls including both our windows firwalls
1) i can connect the client to the server on my own computer
2) i can connect another computer on my Huawei LAN to the server on my computer
3) i can also do the same on the bthomehub LAN to a server i also made on the bthomehub LAN
4) we can also connect from a computer on BTHOMEHUB (client) to a computer on the Huawei D100 (server)
1-4) in all instances it states in 'network connections' 1 incoming connection and the user online
What i cant seem to do... (maby i can but dont realise it yet)
1) i cant connect more than one computers/ clients to a server
2) i cant have a client connect to my server and then try and connect my client to there server(or my server)
3) i look in 'network nieghbourhood/view workgroup computers. no extra computers, click up a level twice and nothing new
4) we have been able to see each other in age of empires when we 1st tried it under 0) above. but could not get in the game.
other info..
it seems to be connecting on PPTP but we cannot share folders or view each other in network nieghbourhood, or play games.
also it seems as though we can connect client behind BTHOMEHUB to server behind Huawei D100, but not vice versa any more. will have to check again.
Thanx for reading this far and hope you can help, or if you have had a problem hope this helps you but dont for get to help me and others.
but me especially lol.
Q2006@hotmail.co.uk PLEASE HELP HELP HELP HELP HELP.