Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


April 2000

15 Tips for Troubleshooting VPN Connections


RSS
Subscribe to Windows IT Pro | See More Change and Configuration Management (CCM) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
SideBar    Important Client TCP/IP Settings

A few server tips and a bucketful of client techniques

You can construct a VPN in a myriad of ways, but constructing your VPN is just your first step. After you construct the VPN, you have to troubleshoot it.

A minimal VPN implementation has a RAS PPTP server connected to the Internet, a client connected to the Internet, and a PPTP connection between the server and the client. As long as ISP service or Internet connectivity is available, clients can connect to your server or LAN from anywhere in the world. However, most VPNs aren't as simple as a connected server and client. More often, the VPN server is on a routed LAN segment, often behind a firewall, and the client connection uses an ISP network, which also employs routers and firewalls.

You can build a PPTP server as a standalone server or as a domain controller in a couple of steps: You install RAS and the PPTP protocol and configure PPTP ports the same way you configure dial-up connections. Windows NT client setup is equally straightforward: You load PPTP and configure the PPTP connection to locate the PPTP server over the Internet. With such a simple setup, you might assume that the VPN connection will function properly the first time. However, administrators spend a fair amount of time troubleshooting before they successfully deploy a new VPN.

Troubleshooting a VPN, like troubleshooting any WAN connectivity problem, is complex because the data travels through many links before it arrives at its destination. For example, data typically flows from the client to an ISP's router, through a firewall, across the ISP's network, maybe across additional ISPs' networks, to the company's router, to a firewall or proxy server, and finally to the destination PPTP server.

When a client connects to an ISP (this connection uses the Point-to-Point Protocol—PPP—portion of the VPN connection), the ISP assigns the client a TCP/IP address, a DNS server address, and a default gateway. When the client initiates a PPTP connection, that action creates a second TCP/IP session (this session is the tunnel portion of the VPN connection), which is embedded inside the first session and provides packet encryption and encapsulation. When the client connects successfully, the VPN server assigns the client a second IP address, a second DNS server address, frequently a WINS server, and another default gateway. At each link in the connection, something can go wrong. Knowing the common configuration and connectivity problems and having a troubleshooting procedure to follow will help you debug your VPN connections.

VPN Server Recommendations
If possible, start with an NT server that has a minimum number of services installed and limit the protocols to TCP/IP and PPTP. You'll save time if you update your server with service packs before you try to debug client connections. NT 4.0 Service Packs 5 (SP5) and SP6a correct numerous problems with PPTP connections, including performance problems related to fragmented packets, dropped connections, and refused connections. I have four more recommendations to help you keep the server configuration simple and straightforward for troubleshooting purposes.

Configuring a multihomed server. If your PPTP server has two network cards, one for the LAN and one for the WAN, leave the gateway field on the LAN adapter blank (don't enter zeros; leave it blank). In the gateway field of the WAN network interface, enter the TCP/IP address that your ISP provides; the gateway address usually points to a router at your ISP. You need the blank gateway so that the server can route network packets to the client. Leaving the LAN gateway blank is standard practice when you configure a server with multiple network adapters. For test purposes, I recommend you manually enter the TCP/IP address and WINS server address for the LAN NIC (instead of using DHCP to assign these values).

Configuring RAS. When you install RAS, configure only as many VPN ports as you truly need to support active client connections. Although each RAS server can support 256 concurrent connections (assuming you have the bandwidth for all this activity), you might need only 40 concurrent connections to support your mobile users. Next, configure the server to assign client addresses from a static address pool, rather than assigning addresses from a DHCP server. If you configure RAS to assign client addresses from a static address pool, clients inherit the DNS and WINS settings from the RAS server. If your RAS server can browse the network, clients should also be able to browse the network with the same settings.

If you prefer DHCP, verify that DHCP scope option 44 (WINS/NetBIOS name server) points to the WINS server and that scope option 6 shows the address of your DNS server. When you don't define these options, you almost guarantee problems with client browsing.

Enabling PPTP filtering. Configuring and testing a VPN server that resides outside your firewall is easier than testing a server inside your firewall because avoiding the firewall removes one link in the test-and-debug chain. If you aren't running your server in a highly secure environment, you can place the server outside the firewall and restrict incoming VPN traffic to PPTP packets only. To enable PPTP filtering, right-click Network Neighborhood, select Properties and Protocols, double-click TCP/IP Protocols, and select the WAN adapter and Advanced. Then, select the Enable PPTP Filtering check box. When you enable PPTP filtering, the server will refuse all non-PPTP requests. I've tested this feature, and it's an effective method for restricting incoming sessions to PPTP-only connections. PPTP filtering has one important side effect: When you enable filtering, LAN clients can't use the RAS server's WAN connection to browse the Internet because filtering disables incoming HTTP and FTP traffic.

If you want the VPN server to restrict incoming packets to PPTP and host an Internet-accessible Web site, you can make a Registry modification that lets other packets through the filtered interface to the local system only. Go to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RASPPTPF\ Parameters Registry key, and add the value entry AllowPacketsForLocalMachine of REG_DWORD data type 1. When you make this modification, you expose the RAS server to the Internet yet restrict incoming connections to the VPN server, so remote clients can't see any other resources on your network.

Using firewall ports. Before you place a VPN server behind a firewall, verify that your firewall software accepts PPTP packets. Sometimes firewall software packages (including some versions of Check Point Software Technologies' FireWall-1) don't accept PPTP connections when you configure the firewall with Network Address Translation (NAT—for information about NAT, see Zubair Ahmad, "Windows 2000's Network Address Translation," February 2000). In this situation, the client's attempt to connect to the RAS server produces the error message Event ID 721 PPP remote peer not responding. When you place a VPN server behind your firewall, be sure to enable IP protocol 47 (Generic Routing Encapsulation—GRE) and TCP port 1723. The connection uses port 1723 for general housekeeping, such as PPTP tunnel creation, maintenance, and termination. Port 47 passes tunneled data between the client and the server (including the GRE protocol), and you also need TCP port 1723 [established] if you're supporting RAS server-to-server VPN connections.

Before you try to connect a VPN client, verify the server's TCP/IP settings on both NICs and make sure your RAS server can perform all typical network operations (e.g., browse the LAN, connect to LAN resources, connect to the Internet, browse the Internet). Then, enable dial-up permission for your test account. You might also want to enable PPP logging for your initial test.

Client Troubleshooting
To operate successfully, a PPTP client must properly maintain two sets of TCP/IP stack settings: one for the ISP and Internet connection and one for the VPN server connection. The client's routing table must also have two entries: one that directs network packets to the ISP for Internet browsing and one that points to the VPN server interface for LAN browsing. When the stack settings are incorrect, clients experience problems. In general, NT clients maintain separate TCP/IP stack settings, but Windows 95 clients typically have trouble with stack settings when the clients have a network card and a modem. After establishing a PPTP connection, the Win9x default gateway might still point to the ISP, which prevents the client from successfully browsing the LAN. Let's take a look at the five most common client connectivity problems.

Client can't connect to the PPTP server. The first problem you might encounter is the client's inability to connect to the PPTP server. You need to check for three possible causes of this problem.

  1. Establishing VPN server Internet connectivity. After you configure the client, you need to verify that the VPN server has a connection to the Internet. The easiest way to verify a connection is to use the server's TCP/IP address and ping the server from the client. (If your PPTP server is behind a firewall and the firewall blocks Internet Control Message Protocol—ICMP—ping messages, this technique won't work.) If the ping gives you the message request timed out, something is amiss with the server's Internet connection. If the server responds by address, you can enter the TCP/IP address in the phone number field of the DUN entry to establish the PPTP session. Although it's less friendly than a Fully Qualified Domain Name (FQDN), this technique works fine when you know the server's address.

    Remember that a server with a dial-up connection is likely to get a different address each time the server connects to the ISP. To connect by address, you must know the address the ISP has assigned to the server each time the server makes a dial-up connection. More commonly, your RAS server will have a permanent address, which eliminates one small variable in the connection process.

    If the server responds by address, ping it by name. If the server doesn't respond by name, one of two situations is likely: The server might not have a registered domain name, or your ISP DNS server might be down or not working properly.

  2. Checking PPTP filtering. With PPTP filtering enabled on the server, you might see the message Error 678: There is no answer, or Error 650: The Remote Access Server is not responding. Disable PPTP filtering on the server (Net Stop RASPPTPF), and see whether you can establish a nonfiltered connection.

    If you can connect with filtering disabled, check the server's filter settings. If you disable UDP ports 137 and 138 or TCP port 139, NetBIOS packets can't pass through the network. You also need to enable these ports on all firewalls and routers that are between the client and the server for unicast (point-to-point) traffic.

  3. Filtering the GRE protocol. If the server responds by address and name but you still can't connect, your ISP's routers or internal routers or firewalls might be filtering GRE packets. To establish a PPTP tunnel, the client and server exchange GRE packets, and some ISPs disable external GRE packets because the ISPs use GRE internally to manage routers. Although GRE filtering is uncommon, it will prevent a PPTP connection, so make sure you have IP protocol 47 (GRE) and TCP port 1723 enabled at both ends of the VPN connection. You can identify GRE filtering with the Microsoft Network Monitor or similar network sniffer tool. For more information about monitoring PPTP packets during a VPN connection, see "Related Articles in Previous Issues."
   Previous  [1]  2  Next 


Reader Comments
Many of the articles I have seen on VPN explain how it works in theory, but I have not seen much written on what steps you need to implement VPN, especially between two servers. With the availability of cheap high speed access, what was once cost inhibative for a small business, is now very affortable. One of the big advantages of W2K is that it can act as a router. I would like to set up the following for clients; I belive W2K has the ability, I would just like to know what steps are required to accomplish the following goals:


The scenario is as follows:
2 (lets start simple) SOHO, each with a W2K server with two network cards, one connected to Cable or DSL with a static public network address, the other network card connects to the local private network with less than 10 computers.
What I would like to be able to do is the following:
1) Connect the two offices via VPN or L2TP so that they can access files on the other server and be athenticated by that sever, or better yet, both belong to the same active directory.
2) Allow the users in each office to browse the network in the remote office.
3) Configure W2K so that it will automatically route packets either to the internet for browsing, or to the romote lan via VPN.
4) Possibly have both servers as part of the same active directory(Would be greate for policy control).
5) Ensure the connection between the offices is secure.
6) The connections are seemless the the clients.
7) For the bonus question, add a third server and have data route between the other two servers, either in a hub and spoke or through a mesh topology.



Karl Brown March 24, 2000


I read Paula Sharick's "15 Tips for Troubleshooting VPN Connections" (April 2000), but I still have one question. How do I set up a VPN with both ends using Digital Subscriber Line (DSL)?

Lee Shouse May 16, 2000


<i>The process is really a lot simpler than it appears to be at first glance. Follow these steps:
1. Configure the VPN server WAN link (including DSL) according to your ISP's instructions; make sure that the server is connected and that you can browse the Internet and resolve names. A static IP address on the server is much easier to work with than a dynamic one that changes every time you connect with DSL.
2. Configure the workstation according to your ISP's instructions; make sure that the workstation is connected and that you can browse, resolve names, and ping the VPN server from the workstation and get an answer.
3. Create a VPN connection from the workstation to the server (start by connecting to the VPN server's WAN DSL TCP/IP address).</i>

Paula Sharick May 16, 2000


Paula Sharick’s “15 Tips for Troubleshooting VPN Connections” (April 2000) discusses several major technical problems, but I have a problem the article doesn’t address. I have a server that connects to the Internet through Digital Subscriber Line (DSL), and it has TCP/IP, NetBEUI, and IPX installed. On one of my networks, I can browse clients and map to clients at will. However, when I dial in through a remote control package and attempt to browse the server or map a server drive, the server keeps asking for a password for IPC$. While I’m connected through dial-up, I don’t see any of the server resources, and I can’t Net Use to anything on the server without getting the same IPC$ password prompt. Do you have any ideas?

A. C. Buehler June 07, 2000


<i>I suspect that your remote control software is the source of the problem be cause it’s using remote procedure call (RPC) for remote communication. However, I haven’t run into the IPC$ problem for so long that I’ve forgotten the solution. Try searching Microsoft Support Online for IPC$, and see what turns up.
Problems can also occur with VPNs and IPX. The Microsoft article “SMB Traffic During Windows NT Domain Logon” (http://support.microsoft.com/ support/kb/articles/q139/6/08.asp) de scribes an IPC$ logon and might help you troubleshoot the problem.</i>

Paula Sharick June 07, 2000


Hi there,

Thanks for the article. I've configured a VPN with DSL on both the server and client side. The client is able to authenticate with no problem, browse the network. They also have solid pings to the server with about 80ms response time. The problem is, when they try to copy a file, launch an application like ACT or Quickbooks, where the datafile resides on the server, the apps crash. Copying a file also crashes partway through.

What am I missing???

Thanks for your help.


Rob Schenk July 07, 2000


I was reading your article and it was very helpful. The one thing I haven't really noticed in the documentation that I've been reading is what kind of speed issues come up by using VPN. For example, I'm trying to use VPN in my business for my remote users using 56k dialup lines, and I notice that the throughput is almost worse than direct dialin. Is there something that I can do to speed it up so that this is a more viable solution?

Brian Cross July 28, 2000


I read Paula Sharick's "15 Tips for Troubleshooting VPN Connections" (April 2000). The article explains things in detail, but I think the article would have been stronger if Paula had discussed using LMHOSTS for network browsing (if you don't have a lot of server movement) and included more common problems and solutions. For example, in my implementation, users often complain about how slow the VPN connection is (although the Internet connection is speedy). Users also complain about getting disconnected after a period of inactivity. I'd welcome solutions to either of these problems.

Kishore Gagrani August 02, 2000


<i>I've seen articles about VPN disconnection in Microsoft's Knowledge Base, and I suggest you search there. Using LMHOSTS is an answer for some people, but most sites prefer a clean DNS implementation because it's so much easier to manage. <br><br>

--­Paula Sharick </i>

Paula Sharick August 02, 2000


So...does anyone have a solution for client disconnects after a period of inactivity? Is it an idle timeout setting somewhere? Thanks for the info provided. Can I copy the t/s piece and hand out to my end-users and helpdesk team?

Kevin Nitz August 02, 2000


 See More Comments  1   2   3   4 

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Tracking Changes in the Modern Windows-centric Regulatory Environment

Delivering Reliable and Effective Web-Based Applications

Making Web Application Perform Better: What to Watch, How to Watch It, and How to Fix It

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Related IIS and Web Administration Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing