VMware vSphere

 View Only
  • 1.  How can I block ESXi about internet connection?

    Posted Dec 18, 2018 07:19 PM

    Hello.

    I don't like my ESXi host see the internet but VMs can. How can I block ESXi host?

    Thank you.



  • 2.  RE: How can I block ESXi about internet connection?

    Posted Dec 18, 2018 07:39 PM

    It depends on your network.

    The easiest way would be to remove the default gateway from the host's settings, but this may not an option in a corporate network.

    Another option would be to block the hosts vmkernel network on your firewall.

    André



  • 3.  RE: How can I block ESXi about internet connection?

    Broadcom Employee
    Posted Dec 19, 2018 08:59 AM

    Normally you would do this on a networking level. You have a management network for ESXi, that VLAN usually shouldn't be allowed to go outside.



  • 4.  RE: How can I block ESXi about internet connection?

    Posted Dec 25, 2018 11:25 AM

    How? Can you show me a tutorial about it?



  • 5.  RE: How can I block ESXi about internet connection?

    Posted Dec 25, 2018 12:29 PM

    Hello,

    If you have a firewall in your environment just go there and block ESXi management IP this is the address which resides on vmk0.

    And if your VMs uses same subnet with mgmt subnet is. then do not block all subnet.

    And if you remove gateway ip of vmk0. Your mgmt packets cannot span between vlans. So that the best option is do it on firewall.



  • 6.  RE: How can I block ESXi about internet connection?

    Posted Jan 07, 2019 06:53 AM

    Can it cause any problem for VMs?



  • 7.  RE: How can I block ESXi about internet connection?

    Broadcom Employee
    Posted Jan 07, 2019 11:25 AM

    On Esxi - Remove the nameserver from /etc/resolv.conf file to Block Internet Connectivity

    and On Vm - You can add DNS Record



  • 8.  RE: How can I block ESXi about internet connection?

    Posted Jun 19, 2020 10:28 PM

    unfortunately it will not block internet connectivity. That will only stop ESXi hosts to resolve FQDNs and if environment deployed with fqdns thats not good.

    As said earlier use different subnets for management and vm traffic and block egress traffic from management



  • 9.  RE: How can I block ESXi about internet connection?

    Posted Jun 20, 2020 03:43 AM

    Such as other experts mentioned, this operation highly depends on your network structure. For example in the most basic environment, you can remove the default gateway from the VMKernel port that handles the ESXi management traffic, of course, IF it didn't cause losing host connectivity! If you have VLANs in your network, you can restrict internet connectivity for the ESXi host management VLAN (If the hosts have a separate VLAN ID in your planning). BTW consider this matter: Changing the VMKernel IP settings for any VMK interfaces, will never interrupting virtual machines networking, even you lost the host connection while modification some settings until you don't change the VM's port groups, they still have their connections.



  • 10.  RE: How can I block ESXi about internet connection?

    Posted Jun 21, 2020 04:59 PM

    by simply learn basics about iptables, set up a small virtual machine and define it as default gateway which blocks outbound forwarding from whatever sources you ant