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