i installed centos 7 on a vmware virtual machine (vmware esxi 6.7), with two virtual ethernet cards, one with private ip address and the second with public ip address, this machine have to contain a web server.
i disabled firewall service.
on the centos machine all installations went well , i can ping LAN private addresses as well as internet ip addresses and names.
inside the LAN i can ping both the local and the public ip address of the centos machine, BUT from outside the LAN the ping to the centos public ip address doesn't pass
my LAN config is like this:
one router,
DNS server working as gateway and NAT server
there is any firewall in the LAN,
all other servers installed on physical hosts are normally reachable from outside, only centos virtual machine isn't
this is my ens1 ethernet card configuration file:
Code: Select all
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
IPADDR=X.X.X.X
NETMASK=255.255.255.X
BROADCAST=X.X.X.255
GATEWAY=X.X.X.X
DNS1=X.X.X.X
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens1
UUID=59781434-17f4-4cad-8327-7388530dcff9
DEVICE=ens1
ONBOOT=yes
ZONE=
Code: Select all
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
IPADDR=X.X.X.X
NETMASK=255.255.X.X
BROADCAST=X.X.255.255
GATEWAY=X.X.X.X
DNS1=X.X.X.X
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens2
UUID=527d1434-27f4-4cfd-8327-7382530dfffdea
DEVICE=ens2
ONBOOT=yes
ZONE=
thank you for help.