tag:help.rubygems.org,2010-01-19:/discussions/problems/18499-install-gems-from-behind-corporate-firewallRubyGems.org: Discussion 2014-08-13T16:12:38Ztag:help.rubygems.org,2010-01-19:Comment/338687702014-08-04T22:59:03Z2014-08-04T22:59:05ZInstall gems from behind corporate firewall<div><p>I would guess that due to load balancing you are probably
hitting a bunch of different IP's that aren't specified in your
firewall rules. If they are using EC2 then it might be impossible
to give you a definite list of static IP's.</p>
<p>Do you have a proxy? That would probably be more reliable.</p>
<p>First test directly on your box without Capistrano and try a
simple 'gem install' command to verify that the issue isn't with
Bundler or Capistrano.</p>
<p>To set proxy in your environment use:<br>
export https_proxy=<a href=
"http://user:password@host:port">http://user:password@host:port</a></p>
<h1><a class="anchor" name=
"sometimes-it-needs-to-be-uppercase-depending-on-the-os" href=
"#sometimes-it-needs-to-be-uppercase-depending-on-the-os" id=
"sometimes-it-needs-to-be-uppercase-depending-on-the-os"></a>sometimes
it needs to be uppercase depending on the OS</h1>
<p>export HTTPS_PROXY=<a href=
"http://user:password@host:port">http://user:password@host:port</a></p>
<p>Also try http_proxy or HTTP_PROXY</p></div>adam21etag:help.rubygems.org,2010-01-19:Comment/338687702014-08-05T17:58:39Z2014-08-05T17:58:39ZInstall gems from behind corporate firewall<div><p>I found the answer.</p>
<p>If you are behind teh firewall then you need allow access to
these servers/ports</p>
<p>To rubygems.org 443<br>
To github.com 443<br>
To s3.amazonaws.com 443</p></div>Ram Iyertag:help.rubygems.org,2010-01-19:Comment/338687702014-08-13T16:12:36Z2014-08-13T16:12:36ZInstall gems from behind corporate firewall<div><p>Closing.</p></div>Evan Phoenix