title: Disable internet (external access) on Vagrant VM
body: <p>I'm trying to simulate a production environment using my local computer with the help of Vagrant. The VM was not supposed to have any access to the internet. </p>
  
  <p>Tried to untick the "Cable Connected" on the VirtualBox settings, but I will not be able to SSH to the VM which defeat the purpose.</p>
  
  <p><strong>Vagrantfile</strong>:</p>
  
  <pre><code>config.vm.define "second" do |second|
    second.vm.box = "centos/7"
    second.vm.box_check_update = false
    second.vm.hostname = 'second'
  
    second.vm.network :private_network, ip: "111.111.11.111"
  
    second.vm.provider :virtualbox do |v|
      v.name = "second"
    end
  
    second.vm.synced_folder "/devdir", "/vagrant_data"
  end
  </code></pre>
  
  <p><strong>Verification</strong>:</p>
  
  <pre><code>curl www.google.com  ## This should return error/ cannot found?
  </code></pre>
  
  <p>Thanks in advance, people! </p>