作者:baisedehuiyi11396 | 来源:互联网 | 2023-09-23 19:16
Privoxy搭建代理服务器FROMalpineEXPOSE8118RUNapk--no-cache--updateaddprivoxywgetca-certi
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\0/enable-edit-actions\1/'/etc/privoxy/config \
sed-I ' ' s/#最大客户端连接/最大客户端连接/'/etc/privoxy/config \
sed-I ' ' s/accept-intercepted-requests\0/accept-intercepted-requests\1/'/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