Vagrant and proxy server on Windows

2,886 views
Skip to first unread message

Reuben Avery

unread,
Aug 12, 2013, 5:26:20 PM8/12/13
to vagra...@googlegroups.com
Hello all,

We have a network that requires using a proxy server for all external traffic.  I'm unable to get vagrant to recognize this proxy server in order for it to download the base vm.  I have set the HTTP_PROXY environment variable properly but it dies with 'host not found'.  This is with v1.2.7

Anyone else face this?

Thanks,
Reuben

Torben Knerr

unread,
Aug 12, 2013, 5:57:22 PM8/12/13
to vagra...@googlegroups.com
Hi Reuben,

try to set HTTPS_PROXY as well and make sure you inlcude the `http://` part when you set the env vars, e.g.:

$ export HTTP_PROXY=http://my.proxy.org:8080
$ export HTTPS_PROXY=http://my.proxy.org:8080

If you need the proxy to be set in the VM as well there's some more trouble you might encounter. I have summarized my experience here:

Hopefully @tmatilai will find the time to further improve the vagrant-proxyconf plugin (e.g. #6, #13) -- of all approaches this one looks most promising to me:

Cheers, 
Torben








--
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+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Teemu Matilainen

unread,
Aug 14, 2013, 1:19:58 PM8/14/13
to vagra...@googlegroups.com
Hi

On Tue, Aug 13, 2013 at 12:57 AM, Torben Knerr <torben...@gmail.com> wrote:
>
> Hopefully @tmatilai will find the time to further improve the
> vagrant-proxyconf plugin (e.g. #6, #13) -- of all approaches this one looks
> most promising to me:
> https://github.com/tmatilai/vagrant-proxyconf

I just yesterday returned from a long trip and vacations. But I'll
promise to continue with that project in the next couple of days. =)
All feedback welcome as always!

Cheers,
- Teemu

Kuaf Lee

unread,
Apr 17, 2014, 10:51:18 PM4/17/14
to vagra...@googlegroups.com
Hi,

I googled a while to reach here because similar issue hit me.

- My vbox VM was behind corporate firewall with ntlm authentication.
- I installed vagrant-proxyconf
- Add proxy setting Vagrantfile as following:

  if Vagrant.has_plugin?("vagrant-proxyconf")
    config.proxy.http     = "http://domain\user:passwd@ip_addr:port/"
    config.proxy.https    = "http://domain\user:passwd@ip_addr:port/"
    config.proxy.no_proxy = "localhost,127.0.0.1,.example.com"
  end

Still it didn't work fine after `sudo apt-get update`.

what's best solution for me?

thanks.
Reply all
Reply to author
Forward
0 new messages