使用 redsocks 和 iptables 配置 Linux 透明代理
1 配置 redsocks
1 安装 redsocks:apt install redsocks
2 编辑配置文件:vim /etc/redsocks.conf
主要编辑这些部分:
local_ip = 0.0.0.0; // 只截获本机流量可使用 127.0.0.1
local_port = 12345;
// `ip' and `port' are IP and tcp-port of proxy-server
// You can also use hostname instead...
xiaoxk.com2 min read