This help site has been deprecated. Please send your requests to

Getting past firewalls

tmatsumoto's Avatar


06 Oct, 2011 10:56 PM

Hi there,
We are behind a corporate firewall which blocks pretty much everything going out to the internet. Unfortunately our firewall is based on IP and not hostnames. We are trying to download some gem files but it looks like some of the files are on servers with a different IP, so they are being filtered out. Is there a list of IP addresses associated with what we can add to the access list on our firewall?

  1. Support Staff 1 Posted by Eric Hodel on 10 Oct, 2011 05:40 PM

    Eric Hodel's Avatar

    RubyGems connects to and Amazon Cloudfront so you will need to allow access to both sites. The IP addresses of Amazon Cloudfront are not under RubyGems' control.

    Additionally, I just wrote:

    Which describes how to install gems when the target machine has no network connectivity.

  2. 2 Posted by adborns on 18 Jul, 2014 05:31 PM

    adborns's Avatar

    I'm having a similar issue getting around our company proxy server.

    $ gem install rails --http-proxy http://me:password[at]proxy.ser.ver/proxy.pac:80

    ERROR: Could not find a valid gem 'rails' (>= 0) in any repository
    ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
    bad response Not Found 404 (

    Any suggestions on these errors?

  3. Support Staff 3 Posted by Eric Hodel on 18 Jul, 2014 06:59 PM

    Eric Hodel's Avatar

    Your proxy URL is not a proxy URL but a proxy auto configuration. You'll need to extract the proxy server URL from it.

Discussions are closed to public comments.
If you need help with please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac