jeudi 15 décembre 2011

pat vs nat

NAT is a many-to-one address translation. That is many computers on a private network, can access the internet, via 1 gateway, and 1 real IP address.

All connections outbound appear to be coming from the WAN interface of that gateway. The NAT device maintains these connections, ensuring they get to the original PC within the private network. Hence Network Address Translation.

PAT is a many-to-one port translation. Say for instance, you have a NAT gateway, and you want to open 2 ports into your LAN. you want port 80 (http) traffic to goto a web server on your lan, and you want port 25 (smtp) to goto your mailserver. Your NAT/PAT device will translate any connections made to its WAN interface on these 2 ports and route the traffic through to the respective server.

Nombre total de pages vues