Stun protocol, detecting NAT type (Personal understanding) _ Firewall

Source: Internet
Author: User

The network of client hosts can be grouped into the following types:

1, opened: The host has public network IP, and there is no firewall, free and external communication.

2, full Cone NAT: NAT device in front of host,

The NAT rules are as follows: Packets sent from host UDP port a correspond to Port B of the NAT device's export IP, and packets sent from any external address to the NAT device UDP port B are transferred to host Port A.

3, restricted cone NAT: A NAT device in front of the host,

The NAT rules are as follows: Packets sent from host UDP port a correspond to Port B of the NAT device's export IP, but only packets from the destination IP from the host that sent the packet to the NAT device UDP port B will be transferred to host Port A.

4, Port restricted cone NAT: NAT device in front of host,

The NAT rules are as follows: Packets sent from host UDP port A will correspond to Port B of the NAT device export IP, but only the purpose of the packet being sent from the previous host ip/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.