Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In a typical browser, when we set a proxy server, we can define a list of hostnames/IP addresses that are not to use the proxy server. How do we accomplish the same thing when using $http_proxy? I rely on setting $http_proxy to use the proxy server in Chromium on Linux but they're certain IP addresses on the intranet that I need to bypass the proxy settings for.

share|improve this question

closed as off-topic by masegaloeh, HopelessN00b Mar 18 at 1:23

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – masegaloeh, HopelessN00b
If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

up vote 15 down vote accepted

Try setting variable named no_proxy in following manner

$ export no_proxy=localhost,,,,

But if you do this in the command line, you will have to do it again each time you open a new terminal window. If you want those settings to be persistent, put this very command inside your .profile file under $HOME (read this answer if you want to understand better what this .profile file is).

share|improve this answer

A very helpful answer. I would add that if you're using curl/wget or other command line tool, you'd want to do:

export no_proxy=localhost,,,,

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.