for the host network only, add a private_network for the 2nd part use an script with ,run: "always" that drop the default gateway
like: you may need to update eth0 to the first interface config.vm.provision "shell", run: "always", inline: "eval `route -n | awk '{ if ($8 ==\"eth0\" && $2 != \"0.0.0.0\") print \"route del default gw \" $2; }'`"end On Sat, Oct 21, 2017 at 10:13 AM, Eric <naisa...@gmail.com> wrote: > I'm looking to setup Vagrantfile's configuration for virtualbox to only be > accessible through a private-network from the host to the guest, and the > guest it not allowed network or internet access > > I'm trying to disable all guest network access from the host side, rather > than using iptables from inside the guest > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > IRC: #vagrant on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vagrant-up+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/vagrant-up/09a5f1a4-af05-4227-abda-3af985e51216%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/09a5f1a4-af05-4227-abda-3af985e51216%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exw_bgvFd-AAKpFRSU6QFg0vHgSaHhNksPbNxU27bRWnA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.