Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


November 2001

Using NAT with L2TP over IPSec


RSS
Subscribe to Windows IT Pro | See More Security Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

I recently installed PPTP on my company's Windows 2000 Server machine so that other users and I can reach the server from home. However, I now have an open Windows logon. Anyone with an Internet connection and a computer running Win2K, Windows NT, Windows Me, or Windows 98 can log on to the server if they know its IP address and can deduce a username and correlating password.

To reduce the risk, I renamed the Administrator username to something more difficult to figure out, and I removed the Guest username. Only users with password access can dial in using a RAS connection. I've placed the server behind a Cisco Systems' Cisco 677 ADSL router running Network Address Translation (NAT) and Port Address Translation (PAT), and I've configured the router to forward TCP port 1723 packets and IP Type 47 Generic Routing Encapsulation (GRE) packets from the WAN IP address to the internal IP address (i.e., the server's IP address). How safe is my open PPTP logon, and what else can I do to improve security?

When I received this question, I contacted the reader and suggested that he could use Layer 2 Tunneling Protocol (L2TP)—or in Win2K, L2TP over IP Security (IPSec)—to improve security. The reader responded that L2TP and NAT are incompatible—which isn't true. Granted, the router the reader uses can't support both L2TP over IPSec and NAT (in which case the only way the reader can improve security is to use a router that does support both L2TP over IPSec and NAT). However, the reader led me to believe that his misconception was based on more than his router's limitations.

I checked the Microsoft Windows 2000 Server Resource Kit and discovered that Chapter 9, "Virtual Private Networking," states that "L2TP over IPSec is not translatable by NAT because the UDP port number is encrypted, and its value is protected with a cryptographic checksum." The resource kit also states that "In L2TP over IPSec packets, UDP and TCP headers contain a checksum that includes the source and destination IP address of the plaintext IP header. The addresses in the plaintext IP header cannot be changed without invalidating the checksum in the TCP and UDP headers." These words are strong, so I don't wonder that the reader presumed that L2TP over IPSec is incompatible with NAT.

Contrary to the resource kit's information, many organizations can and do run L2TP over IPSec and NAT at the same time. Cisco has used IP Encapsulating Security Payload (ESP) to incorporate NAT and IPSec, and any concentrator or Cisco PIX router that runs a recent version of Cisco's Internetworking Operating System (IOS) can support both protocols. (I'm certain that other companies support IPSec and NAT, but in this case I'm familiar only with Cisco's solutions.) The Internet Engineering Task Force (IETF) Request for Comments (RFC) 2406 discusses the IP ESP protocol, and the Cisco articles "NAT Transparent Mode for IPSec" (http://www.cisco.com/warp/public/471/nat_trans.html) and "Reference Guide: Deploying IPSec" (http://www.cisco.com/warp/public/cc/so/neso/sqso/eqso/dplip_in.htm) discuss Cisco's NAT and IPSec integration process. (For more information about IPSec and Win2K, see Tao Zhou, "IP Security in Windows 2000," http://www.win2000mag.com, InstantDoc ID 7976.)

End of Article



Reader Comments
I feel that this article has been greatly oversimplified. Just saying "It can work" seems almost like a disservice to the person whom you were replying to. There are two modes of IPsec (Transport mode and tunnel mode) and only one (Tunnel) will work with NAT without disabling security checks on the data. Here is a real resources for the user who wanted to make NAT and IPsec work or at least understand it.

http://www.cisco.com/warp/public/759/ipj_3-4/ipj_3-4_nat.html

Eric Larson June 20, 2002


This article ownz. I am getting ready to take my last MCSE exam, and I personally I am getting sick of errors in these stupid microsoft books.

nick May 19, 2004


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

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

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Security Whitepapers Reducing the Costs and Risks of Branch Office Data Protection

Solving Desktop Management Challenges in Healthcare

Solving Desktop Management Challenges in Education

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Introduction to Identity Lifecycle Manager "2"

SQL Server Security: How to Secure, Monitor & Audit Your Databases

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


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 DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement