Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use privoxy to turn a socks Agent into a http Agent

2025-03-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)05/31 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report