How to enable internet access inside Vagrant?

前端 未结 4 663
清歌不尽
清歌不尽 2021-02-01 02:37

If I run curl google.com, I can\'t see the output, only a blank page. My Vagrantfile contains:

Vagrant.configure(\"2\") do |config|
  config.vm.box          


        
4条回答
  •  半阙折子戏
    2021-02-01 03:13

    Disabling firewall helped me. In my CentOS guest box I did:

    # sudo service iptables save
    # sudo service iptables stop
    # sudo chkconfig iptables off
    

提交回复
热议问题