Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vagrant does not honor proxy settings for vagrant cloud boxes #4051

Closed
davidkarlsen opened this issue Jun 17, 2014 · 3 comments
Closed

vagrant does not honor proxy settings for vagrant cloud boxes #4051

davidkarlsen opened this issue Jun 17, 2014 · 3 comments

Comments

@davidkarlsen
Copy link

When using vagrantcloud boxes like:
vm.box = "user/boxname"

vagrant does not use the http_proxy settings (but it does when installing plugins!).

Thus vagrantcloud boxes are not usable from enterprisey networks that require you to configure a proxy server for http(s) traffic.

@davidkarlsen
Copy link
Author

Please disregard this issue, I had messed up my environment (was only available when installing plugins). Sorry for the noise.

@yehh
Copy link

yehh commented Jun 18, 2014

Sounds great news, I encounter that the vagrant doesn't work behind the proxy server. Btw, if the feature will include the proxy support, does it work for ISA server via NTLM mode?

I am using the ntmlmaps components for Cygwin and other apps on windows platform.

@jclagache
Copy link

I don't know if this issue should be re-opened or a new one should be created : downloading a box on vagrantcloud through a proxy works but not login.
Download is subprocessed to cURL, so the http_proxy environnent variable is used as expected. However, login is managed by rest-client but the login client does not deal with such environnent variable.
My workaround is to modify the login client constructor :

module VagrantPlugins
  module LoginCommand
    class Client
      # Initializes a login client with the given Vagrant::Environment.
      #
      # @param [Vagrant::Environment] env
      def initialize(env)
        @logger = Log4r::Logger.new("vagrant::login::client")
        @env    = env
        RestClient.proxy = ENV['http_proxy']
      end
....
    end
  end
end

Do you think that Vagrant has to deal with environnent proxy settings or leave this to the vagrant-proxyconf plugin (tmatilai/vagrant-proxyconf#53) ?

@ghost ghost locked and limited conversation to collaborators Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants