|
|
|
Date Submitted:
05/09/05
Hits: 1832 Rating: ![]() ![]() ![]() ![]() based on 1 vote
HOWTO: Configure VPN Access to a System with One InterfaceAdded by Papergrl By: Sojournist Virtual Private Networking provides organizations with a low-cost, high-bandwidth, very secure method of providing external users access to internal resources. Using VPN technology not only is all traffic from the client to the server encrypted, it also hides what kind of traffic is passing. FTP traffic, HTTP traffic, and ICMP pings, for example, all look the same to anyone watching the transmission. Encapsulation of all traffic hides source and destination ports. The only thing an eavesdropper can tell from monitoring the traffic is source and destination IP address and the tunnel protocol used. This article will discuss how to configure a VPN solution from any Internet client to a single Windows machine. VPN servers typically route traffic onto an internal subnet, requiring one interface for WAN and one interface for the LAN. WHAT IS A VPN Not only are VPN solutions secure, they are also cheap. Remote access can take advantage of a client’s primary Internet connection. There are no long distance charges for using the Internet. And a home user’s cable modem can achieve speeds well above the capabilities of a dial-up client. VPN servers accept connections from Internet users and, after authentication, route the packets onto the internal network in plain text. Responses from the internal network are encrypted by the VPN server and returned to the VPN client in the encrypted tunnel. At all times that packets are visible on the Internet, they are tunneled and encrypted. VPN servers usually require two network interfaces, one WAN connection that accepts remote user connections, and one internal connection to relay packets onto the intranet. How then could we use tunneling and encryption for secure remote access to a single host, say our home PC? CHEATING TO USE A SINGLE NETORK ADAPTER To get around this requirement, a /�virtual/� network adapter can be installed. This software-based NIC is called Microsoft Loopback Adapter. To install the Loopback Adapter, you can follow the instructions below. This step-by-step, like all the others in this article, follow the wizards and consoles installed in Windows 2000. The wizards and tools on Windows XP Pro and Server 2003 are similar. The instructions below provide enough information to configure utilities on those operating systems with very little modification. Follow these instructions to install the virtual adapter:
This will create the additional network connection that you need to turn on RRAS. Right-click on My Network Places and select Properties. The last adapter listed, probably named Local Area Connection2, will now be available. Rename this connection /�Loopback/� in order to easily differentiate it from your real network interface card. An IPCONFIG will show that the interface has assigned itself an IP address on the 169.254.0.0 subnet. This is the address space set aside for DHCP clients that cannot retrieve addressing information from a server. Leave it as default, as there isn’t actually a network connected to the virtual adapter. ENABLING AND CONFIGURING VIRTUAL PRIVATE NETWORKING
This will turn on RRAS on your workstation or server. The red down-arrow on the graphic of your server in the Routing and Remote Access console will change to a green up-arrow to signify that the service is running and ready to accept incoming connections. Navigate to the Ports in the RRAS utility. You will see five PPTP ports, five L2TP ports and any hardware devices capable of supporting RRAS, such as modems. PPTP is Point-To-Point Tunneling Protocol. L2TP is Layer 2 Tunneling Protocol. Both perform the same function. They encapsulate traffic, and by using an underlying encryption algorithm, encrypt it. Of the two, L2TP with IPSec is the stronger security. PPTP with Microsoft Point-To-Point Encryption (MPPE) is weaker security, but is more interoperable with legacy operating systems and network infrastructures. Of the two, PPTP is probably the better choice for a generic implementation because it works through NAT. L2TP does not work through NAT for Windows 2000 and earlier, and can only tunnel through NAT on Windows XP and Server 2003 with additional software. If you want to allow five concurrent connections via each protocol, you can keep the default ports. If you want only one connection at a time supported, delete all the L2TP ports and all but one of the PPTP ports. ENABLING USERS TO CONNECT THRU VPN
CREATE THE VPN CLIENT CONNECTION On the machine from which you will be making the VPN connection, do the following:
CONNECTING TO YOUR VPN SERVER CONNECTING TO YOUR VPN SERVER THROUGH A ROUTER/FIREWALL On a firewall, allow TCP port 1723 in both directions. Allow GRE protocol 47 in both directions. The beauty of VPN is really noticeable when you look at the simple firewall rules above. That one port allows any service, any protocol, to pass from the client to the server. FTP, Telnet, SMTP, LDAP—every protocol and port is TUNNELED through the VPN. The original packet is encapsulated in PPTP. It is not until it arrives at the VPN server and the original packet is unwrapped and decrypted that the source and destination ports are discovered. This is how even when every packet is captured, it is not possible to tell what kind of connection is inside the tunnel. Every packet looks exactly the same. It is from the source IP, port 1723 to the destination IP, port 1723. Tunneling and encryption, the cornerstones of VPN protect the privacy of all the sessions between the endpoints. WHERE DO I GO FROM HERE? Remember that Microsoft Loopback Adapter? Install a second network adapter and skip that part. The VPN interface is your public adapter. The network interface on the internal network is your private adapter. Change the default gateway on all of the hosts on your subnet to the internal network adapter’s address. Your server will route all LAN traffic through the server out the public interface and onto the Internet. All incoming VPN connections will tunnel through the server onto the LAN. Do you have a dynamic address but still want to be able to VPN regardless of its current address? Check out DYNDNS.ORG for a free Internet DNS name that will map to your current IP address. VPN is secure and cheap. And it is not a technology exclusively in the hands of corporations with expensive hardware and teams of administrators. Just don’t tell anyone that it’s this easy. The salaries of those glorified VPN architects and administrators might actually drop! You don't have permission to post replies. Please login or register. |
