Network cannot access VMware Virtual Machine Web server workaround

Source: Internet
Author: User

Environment: Virtual machine Server is centos,apache+php+mysql environment, but LAN cannot access

1. This function ping the virtual machine 2. The virtual machine can also ping the machine 3. Virtual function access to their own web 4. The computer cannot access the virtual Web


It was later discovered that the firewall blocked the 80 port for the sake of it.

Check that the 80 port of the server is blocked by a firewall and can be ordered by:

telnet {server ip}80 to test.

The workaround is as follows:/sbin/iptables-i input-p TCP--dport 80-j ACCEPT then Save:/etc/rc.d/init.d/iptables Save restart Firewall/etc/init.d/iptable s restart
The CentOS firewall shuts down and shuts down its service:

To view the CentOS firewall information:

/etc/init.d/iptables status

To turn off the CentOS Firewall service:

/etc/init.d/iptables stop

To permanently shut down the firewall:

Chkconfig--level iptables off

Finally, open the host browser, enter the virtual machine place, you can access the virtual machine's Web server!

Network cannot access VMware Virtual Machine Web server workaround

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.