Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Configuration of NAT port mapping

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Port mapping maps the LAN IP address of a host to a WAN IP address. When a user accesses a port that provides a mapped port host, the server transfers the request to the host within the local local area network that provides this specific service. Using the port mapping function, multiple ports of an external network IP address machine can be mapped to different ports on different machines in the intranet. Port mapping can be divided into dynamic and static. Let's experiment with the topology diagram.

.

Experimental goal: convert port 80 of server port 192.168.100.111 to port 8080 of 12.0.0.5 and enable it on the port. Port 8080, which allows the external network to access 12.0.0.5, will be mapped to port 80 of 192.168.100.111, directly accessing 192.168.100.111.

1: check the details of the linux network card binding the network card vmnet1

Set IP subnet mask gateway card on 2:windows7 to vmnet2

3: configure router R3 to enter global mode to set IP for port f0max 0 and open IP for setting port f0can1 and open port 80 that translates server port 192.168.100.111 to port 8080 of 12.0.0.5 (so that port 8080 accessing 12.0.0.5 is mapped to port 80 of 192.168.100.111) enable NATend to exit on the interface to Privileged mode opens the port to detect debug ip nat

Open a browser on windows and enter http://12.0.0.5:8080/ to access the lamp built in linux. You can see the details of address translation in router R3.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report