问题原文
原帖链接 · mncache · CC BY-SA 4.0
I want to build my own small smart dns-proxy server with following features:
- Client sets DNS Server like (2.2.2.2 <- MY DNS Server includes Proxy Squid)
- Client sends request for sepcial domains (youtube.com etc.)
- DNS responses: 2.2.2.2 (my proxy server)
- My proxy is now connecting to another-location-proxy: 3.3.3.3:6060 (SOCKSv5)
- My Proxy is getting the content which is requested and sends only this back to the client.
So my goal is to send only this specific request to the SOCKS Proxy.
Is it possible with the software powerdns and squid for example?
Thanks.
已采纳解答
原帖链接 · mncache · CC BY-SA 4.0
Okay I just found a shell script on github which fully fulfills its purpose with squid sslbump, sniproxy and dnsmasq installed. (Instead of powerdns).
- Cloning https://github.com/suuhm/unblock-proxy.sh
- Setting my wished SOCKS Proxy in the proxies file.
- Running in bash to start the smartdns:
./unblock-proxy.sh dns --squid --debug
This solution works for me
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
