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


June 2001

Permitting VPN Traffic Across a Firewall


RSS
Subscribe to Windows IT Pro | See More Point-to-Point Tunneling Protocol (PPTP) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

I'm trying to implement an RRAS-configured Windows 2000 server to permit incoming client VPN connections over PPTP and Layer 2 Tunneling Protocol (L2TP). The server is behind a firewall. What ports do I need to open on the firewall to permit the necessary types of traffic to access the server?

For PPTP VPN connections, you need to open TCP port 1723 for PPTP tunnel maintenance traffic and permit IP Type 47 Generic Routing Encapsulation (GRE) packets for PPTP tunnel data to pass to your RRAS server's IP address. If the PPTP-based RRAS server is the calling router on router-to-router VPN connections (i.e., VPN-based LAN-to-LAN connections to another RRAS server), you need to create an input filter (i.e., inbound rule) on your firewall to open TCP port 1723 as a source port to your RRAS server. For L2TP VPN connections, you need to open UDP port 500 for Internet Key Exchange (IKE) traffic and UDP port 1701 for L2TP traffic. If you restrict outbound traffic, be sure to open all these ports in that direction so that the VPN server can properly communicate with your remote VPN clients.

If VPN traffic is the only traffic you permit to your RRAS server, the best practice from a security standpoint is to deny all traffic except the types I listed in the previous paragraph. I also suggest that you place your RRAS server in a network demilitarized zone (DMZ) rather than on the internal LAN. Chapter 9 of the Microsoft Windows 2000 Server Resource Kit's "Internetworking Guide" volume provides information about properly configuring firewalls for this situation and other VPN server scenarios.

End of Article



Reader Comments
I keep seeing the comment about permitting IP Protocol 47 (GRE). How is that done.

Mike Bartosh May 15, 2002


*quotes Mike Bartosh* - How to set up a rule for IP Protocol Type 47 on a Router that only allows you to forward single ports?

Oliver Schneider December 30, 2003


Sr, I´d like to find any program in order to download movie across a firewall of my company. P2P protocol is disabled. Where can I read some about it?. Thanks

Einar Montero April 23, 2004


I am trying to establish VPN Traffic through a router, no firewall. I have configured Port 1723 to forward to the server IP address. This is still not allowing me to pass through. How do I configure a rule for IP Type 47 on a Router.

Jeff Levy May 14, 2004


Folks, how can i know what ports are available to use? I have Kazaa but i don't know in which port i have to use

Pablo Guzmán May 18, 2004


I opened all the ports listed as required on the router...including 1723. When I try to connect - I get a "did not respond" error. If I switch the machine to a local DMZ...boom...I get right thru and the VPN works as it should. I don't want to leave the server wide open in the DMZ however.
I can't seem to find the 'missing' port forward.
Can anyone help?
Here are the ports that are forwarded: 47, 1700-1750, 445.

Rob June 18, 2004


Firstly, PPTP (VPN) is ENTIRELY different to PTP (Kazaa, etc) If you don't know the difference do some research and stop downloading rubbish illegally!

Second, You need to allow Protocol 47, not port 47 for this to work! There IS a difference!

Anonymous User December 07, 2004 (Article Rating: )


well what is protocol 47, i am using a linksys router, it gives me the options of TCP and UDP to forward....

Anonymous User January 06, 2005


protocol 47 is not TCP and not UDP! It ist a protocol like TCP and UDP. A lot of routers do not permit to forward this protocol. The cisco 800 series does

Anonymous User January 13, 2005


On a linksys router, you can set it to allow pptp passthrough. Depending on your Linksys router, it would be on the VPN Passthrough page under Security. Then route port 1723 traffic to your RAS server on the port range forwarding page. If you are using a firewall, you enable protocol 47 by using "gre" like so...

access-list acl_in permit gre any any

Hope this helps!

Anonymous User January 14, 2005


 See More Comments  1   2 

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
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. ...

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 ...


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

Managing IT Across Multiple Locations

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

SQL Server Administration for Oracle DBAs

Related Windows OSs 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