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

Redsocks2 automatic proxy Settings

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Redsock2 can redirect some proxy servers that do not support transparent proxies so that transparent proxies can be implemented.

Redsock2 installation is very simple. Just make is fine.

Ubuntu needs

Apt-get intsll libevent-2.0-5 libssl-dev

After the installation is complete, copy the redsocks2 directly to the relevant directory.

I used it as a gateway, and then tested it. Http and https can't go together, they have to separate.

Redsocks2 profile:

Base {log_debug = off; log_info = off; daemon = on; redirector= iptables;} redsocks {local_ip = 192.168.1.1; local_port = 1080; ip = 192.168.1.1; port = 8787; type = http-relay; timeout = 12; autoproxy = 1;} redsocks {local_ip = 192.168.1.1; local_port = 1081; ip = 192.168.1.1; port = 8787; type = http-connect; timeout = 12; autoproxy = 1 } redsocks {local_ip = 192.168.1.1; local_port = 1090; interface = eth0; type = direct; # is mainly used to solve NAT problems, so that WAN can access LAN timeout = 1; autoproxy = 0;} autoproxy {no_quick_check_seconds = 300; quick_connect_timeout = 2;} ipcache {cache_size = 4; cache_file = "/ home/user/conf/cache.ip"; stale_time = 7200; autosave_interval = 3600; port_check = 1;}

Related iptables settin

#! / bin/bashiptables-restore

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: 284

*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