Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
add comment

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.

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

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.