tmatilai / vagrant-proxyconf

Vagrant plugin that configures the virtual machine to use proxies
MIT License
531 stars 74 forks source link

Does proxyconf support vagrant box? #170

Closed ajburley closed 5 years ago

ajburley commented 6 years ago

Following my earlier issue, I looked into what vagrant box was doing under the hood, and it triggers curl. It doesn't pass any parameters to set the proxy to curl. The command is something like:

curl -I -q --fail --location --max-redirs 10 --user-agent "Vagrant/2.0.2 (+https://www.vagrantup.com/; ruby2.4.3)" --continue-at - -H "Accept: application/json" "http://vagrantcloud.com/bento/centos-7"

It failed, but when I set my http_proxy and https_proxy environment variables, it worked.

Does proxyconf simply not support vagrant box?

Isn't it possible to just add a --proxy ... option to any curl run by Vagrant?

tmatilai commented 5 years ago

Hi! Unfortunately vagrant-proxyconf is not loaded with vagrant box commands. And anyhow this plugin does the magic on the Vagrant virtual machine, not on the host itself. So the http(s)_proxy variables are the way to go on the host.