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?

link|improve this question
feedback

1 Answer

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.

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

Your Answer

 
or
required, but never shown

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