VM NAT Mode port mapping to allow extranet access to virtual machines in the Intranet

Source: Internet
Author: User
Tags change settings

Scene:

Physical machine extranet for IP a virtual machine NAT Intranet IP B now wants to access the virtual machine with the intranet IP B through IP a. Principle: The Web server uses port 80, so just do a 80-port mapping. SSH default port is 22, also need to do mapping to SSH login. Both are based on the TCP protocol. First look at the virtual machine's intranet Ipb:ifconfig and then edit the VM's virtual network: Edit, Virtual Network Editor 1. Click Change Settings 2. When Nat mode is selected, click Nat Settings Add Port Forwarding: Host Port: Physical machine port to do 80 and 22 port mappings here the virtual network is set up. Then add the inbound rule to Windows Firewall to turn on both ports access rights. Open firewall, Advanced Settings > Inbound rules > New rule: Then select by port > for tcp> specific local ports > enter the port you just mapped. It's done! Now you can access the virtual machine from the extranet IP a! However, this causes the 80 port of the physical machine to be mapped to the virtual machine, so the Web server over the 80 port on the physical machine is unavailable. This provides some convenience, and if you want to use the 80 port of the physical machine, you can map the other ports to the 80 ports on the virtual machine.

VM NAT Mode port mapping to allow extranet access to virtual machines in the Intranet

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.