I want to implement a server for responding any http/https
request sent to it.
It's much like forward proxy using CONNECT method. I do not want the clients to set proxy explicitly. The DNS of the clients is a customized dnsmasq
which will resolve some domain to the proxy server.
How can I achieve this via using iptables for packet forward to a normal forward proxy like squid. Or should I use some hacks like write a netfilter/iptables
plugin, modify the code of squid to make it work in connect mode without connect method.
In short, I want to implement a transparent http/https
proxy which can respond to any normal http/https
request sent to it.