Snat and dnat in linux

Source: Internet
Author: User
Snat and dnat in linux are well known. in order to protect the security of intranet users, the linux firewall has the nat translation function, but the problem arises here, there are two types of nat: snat and dnat. but what kind of nat translation should we use? Here I will be on these two... snat and dnat in linux are well known. in order to protect the security of intranet users, the linux firewall has the nat translation function, but the problem arises here, there are two types of nat: snat and dnat. but what kind of nat translation should we use? Here I will briefly describe these two conversions. Snat is a source address translation technology. when snat is configured on a vro or firewall gateway and the information is published, the router or gateway changes the source address to the configured internet address. When the internal address needs to access services on the public network (such as web access), the internal address will initiate a connection, and the gateway on the router or firewall will convert the internal address, the private IP address of the internal address is converted to the public IP address of the public network. The Address Translation of the Gateway is called SNAT, which is mainly used for internal shared IP access to the outside. Dnat is a technology for destination address translation. when dnat is configured on the router or firewall gateway, when the information is sent, the vro or gateway changes the destination address to the configured intranet address. When an internal service (such as a web site) needs to be provided, the external address initiates an active connection, and the gateway on the router or firewall receives the connection, and then switches the connection to the internal network, in this process, the gateway with a public IP replaces the internal service to receive external connections, and then implements address translation internally. This conversion is called DNAT and is mainly used for external release of internal services.

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.