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

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

1 Answer 1

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


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.