首页 > 编程知识 正文

使用代理服务器除了服务器端代理,自己做代理服务器

时间:2023-05-04 23:35:04 阅读:42811 作者:4442

Privoxy构建代理服务器

来自苹果

EXPOSE 8118

run apk---no-cache---- updateaddprivoxywgetca-certificatesbashp7zip

wget 3359 s3. amazonaws.com/ab2p/ab2p.all _ RUS.7z

mkdir temp

7za e ab2p.all_rus.7z -y -otemp

CP temp/ab2p.system.action temp/ab2p.action temp/ab2p.system.filter temp/ab2p.filter/etc/privoxy

sed-I ' ' s/127.0.0.0.1:8118/0.0.0. 033608118/'/etc/privoxy/config

sed-I ' ' s/enable-edit-actions/enable-edit-actions1/'/etc/privoxy/config

sed-I ' ' s/#最大客户端连接/最大客户端连接/'/etc/privoxy/config

sed-I ' ' s/accept-intercepted-requests/accept-intercepted-requests1/'/etc/privoxy/config

sed-I ' ' s/http/https/g '/etc/privoxy/ab2p.system.filter

rm -Rf temp ab2p.all_rus.7z

apk del bash p7zip

runchownprivoxy.privoxy/etc/privoxy/*

输入点[ '隐私' ]

CMD ['--no-daemon '、'--user '、' privoxy '、'/etc/privoxy/config']

运行

docker run-d---- restart unless-stopped---name privoxy-p 811833608118 splazit/privoxy-alpine

测试

curl-vv https://www.bing.com---- proxy localhost :8118

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。