How to use privoxy to turn a socks Agent into a http Agent
This article is about how to use privoxy to turn a socks agent into a http agent. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Install privoxy
Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk. Privoxy has a flexible configuration and can be customized to suit individual needs and tastes. It has application for both stand-alone systems and multi-user networks.
It's a powerful tool. If you are interested, nibble on your own. The official website http://www.privoxy.org/
Yum install privoxy
Directly installed yum, the trouble of compilation. To add the repo source first.
Establish a socks agent
I built it here with ssh.
Ssh-f-C2qTnN-D 1080 ttlsa@www.ttlsa.com
The www.ttlsa.com is located outside the wall.
Set up a socks agent of 127.0.0.1 socks 1080 locally.
Configure privoxy
# vim / etc/privoxy/config add the following line forward-socks5 / 127.0.0.1 forward-socks5 1080.
You don't have to change the rest.
The forward-socks5 representative forwards to the socks5 proxy, and / represents that all URL are forwarded (you can also write url patten here). 127.0.0.1 URL 1080 is the socks proxy address. Instead of forwarding the request to another http agent, the request is sent directly to the web server.
Start
/ etc/init.d/privoxy restart
The service listens on the local 127.0.0.1 virtual 8118. If you need other devices to use the agent, change the profile listen-address parameter.
test
$curl-x 127.0.0.1 http://www.google.com302 Moved302 MovedThe document has movedhere. Thank you for reading! This is the end of this article on "how to use privoxy to convert socks agent into http agent". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!