SSH&ping在vm之间工作,telnet和curl不工作

SSH&ping在vm之间工作,telnet和curl不工作,curl,nginx,tcp,centos,chef-infra,Curl,Nginx,Tcp,Centos,Chef Infra,我有VMWare Fusion和两个运行CentOS 6.7的虚拟机,我正在尝试在它们的服务器和工作站上部署Chef。Ping和ssh在两个vm之间工作得很好,但当我打开客户端列表时,它会说找不到到到主机的路由。Curl和telnet也不起作用。一些信息:在OS X Yosemite上运行VMWare Fusion,禁用防火墙,两个虚拟机上的网络设置与我的Mac共享。nestat-puntal | grep nginx服务器上的收益率: tcp 0 0 0.0.0.0:9

我有VMWare Fusion和两个运行CentOS 6.7的虚拟机,我正在尝试在它们的服务器和工作站上部署Chef。Ping和ssh在两个vm之间工作得很好,但当我打开客户端列表时,它会说找不到到到主机的路由。Curl和telnet也不起作用。一些信息:在OS X Yosemite上运行VMWare Fusion,禁用防火墙,两个虚拟机上的网络设置与我的Mac共享。nestat-puntal | grep nginx服务器上的收益率:

tcp        0      0 0.0.0.0:9680                0.0.0.0:*                   LISTEN      1091/nginx
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      1091/nginx
tcp        0      0 0.0.0.0:9683                0.0.0.0:*                   LISTEN      1091/nginx
tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN      1091/nginx
ifconfig:

错误:

[root@chefworkstation ~]# knife client list
ERROR: Errno::EHOSTUNREACH: No route to host - connect(2) for "chefsrv1" port 443

[root@chefworkstation ~]# curl chefsrv1
curl: (7) couldn't connect to host

[root@chefworkstation ~]# ping chefsrv1
PING chefsrv1.localdomain (172.16.20.131) 56(84) bytes of data.
64 bytes from 172.16.20.131: icmp_seq=1 ttl=64 time=0.685 ms
64 bytes from 172.16.20.131: icmp_seq=2 ttl=64 time=0.335 ms
64 bytes from 172.16.20.131: icmp_seq=3 ttl=64 time=0.319 ms

这是一种蛮力解决方案,但我禁用了iptable_过滤器模块并禁用了selinux。现在可以工作。

服务iptables状态?
[root@chefworkstation ~]# knife client list
ERROR: Errno::EHOSTUNREACH: No route to host - connect(2) for "chefsrv1" port 443

[root@chefworkstation ~]# curl chefsrv1
curl: (7) couldn't connect to host

[root@chefworkstation ~]# ping chefsrv1
PING chefsrv1.localdomain (172.16.20.131) 56(84) bytes of data.
64 bytes from 172.16.20.131: icmp_seq=1 ttl=64 time=0.685 ms
64 bytes from 172.16.20.131: icmp_seq=2 ttl=64 time=0.335 ms
64 bytes from 172.16.20.131: icmp_seq=3 ttl=64 time=0.319 ms