Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to configure my RHEL 6 box to redirect Internet traffic through an existing web proxy. Like how you can set a web browser to use a proxy, except that my box only has command line.

If the answer involves using Squid, can someone give me an example squid.conf file for v.3.1.10 that can redirect traffic to an existing proxy?

share|improve this question

If you define "Internet traffic" to be HTTP traffic, then

export http_proxy=”http://aaa.bbb.ccc.ddd:port"

export https_proxy="https://aaa.bbb.ccc.ddd:port"

NOTE: I don't have access to a RHEL6 machine to test, but it works on RHEL5.

share|improve this answer
    
Unfortunately this doesn't work for RHEL 6 – proxy-need-help Jul 7 '11 at 23:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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