Security Features of Internet Connection Sharing This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
This article was previously published under Q241570 SUMMARY
This article describes the security features of Internet Connection Sharing (ICS). Although ICS should not be considered a firewall for security purposes, you can use ICS to create a reasonably safe environment while providing full-featured Internet connectivity.
MORE INFORMATION
ICS uses Network Address Translation (NAT) technology to route TCP/IP packets between two networks. ICS connects an internal network (usually a small home local area network) and an external network (usually the Internet). ICS associates a TCP/UDP port number to a specific Internet Protocol (IP) address on the internal network. The port number associated to the IP address is recorded in a table.
For example, the IP address for the ICS internal adapter is 192.168.0.1, and the the external ICS adapter has an IP address of 156.59.23.100, which is assigned by the Internet service provider (ISP). The client sends a TCP/IP packet to a Web page at 131.125.13.1 on the Internet at port 80. The packet contains the following information:
Destination IP address= 131.125.13.1 (address of the Internet destination)
Because 131.125.13.1 is not local to the 192.168.0.x address range, the packet goes to the ICS computer acting as the default gateway. The ICS computer generates a new packet to send to the Web page at 131.125.13.1. The packet contains the following information:
Source IP address= 192.168.0.2 Destination port= 80 Source port= 2000 (Set by program)
Destination IP address= 131.125.13.1
Notice that the values for the source IP address and the source port have changed. In other words, port 3000 is mapped to IP address 192.168.0.2 until the connection is closed. The port mapping is recorded in a table. After the Web page responds, the ICS computer receives a packet containing the following information:
Source IP address= 156.59.23.100 (This is an IP address assigned to the ICS external adapter by the ISP) Destination port= 80 Source port= 3000
Destination IP address= 156.59.23.100
The ICS computer then translates the packet and delivers a new packet to the client IP address of 192.168.0.2 where the initial packet originated. ICS detects that port 3000 is assigned to the IP address because the information is recorded in the port mapping table. The packet sent to the client contains the following information:
Source IP address= 131.125.13.1 Destination port= 3000 Source port= 80
Destination IP address= 192.168.0.2
Notice that the destination port and IP address have changed to the IP address and the port number used by the client where the packet originated. Because of this translation process, the Internet detects the local area network (all clients) behind the ICS computer (including the ICS computer) as one IP address.
Source IP address= 131.125.13.1 Destination port= 2000 Source port= 80 There are only two ways a packet from the Internet can reach a client behind an ICS computer:
| Article Translations
|


Back to the top
