DMZ and port forwarding differences, advantages and disadvantages and applicable scenarios


love421 personal blog: https://www.makedreamsir.xyz


DMZ and port forwarding help us to access the service applications of the home intranet in the external network environment. The two have similarities and differences. The reasonable use of the two can better help us build intranet applications.

One, the difference

DMZ allows you to expose a computer publicly on the Internet, that is, to map out all ports of a computer.
Port forwarding allows a remote computer to connect to a specific computer or service within a private internal network, which means that a certain port of an internal network machine is mapped out.

2. Advantages and disadvantages

DMZ advantages: simple operation, all ports can be mapped in one step

DMZ disadvantages: most routers only allow one

Advantages of port forwarding: can map any service of any computer in the intranet

Disadvantages of port forwarding: general routers have restrictions on the number of mappings, and the operation is cumbersome

Three, applicable scenarios

DMZ: When the service ports you want to map are all on one intranet machine, and the number is large

Port forwarding: when the service port you want to map is scattered on several machines, and the number is not large

Guess you like

Origin blog.csdn.net/qq_37449342/article/details/97244984