How to use vagrant in a proxy environment?

ithelloworld picture ithelloworld · Nov 9, 2013 · Viewed 101.3k times · Source

My company's network is using proxy. So when I use vagrant up, it showed me a 401 permission error.

How can I do some setting to use vagrant?

Answer

Alejandro Moreno picture Alejandro Moreno · Jan 23, 2014

Install proxyconf:

vagrant plugin install vagrant-proxyconf

Configure your Vagrantfile:

config.proxy.http     = "http://yourproxy:8080"
config.proxy.https    = "http://yourproxy:8080"
config.proxy.no_proxy = "localhost,127.0.0.1"