I’ve set up a transparent proxy on my Mac OS 10.13 High Sierra. And when I set the mitmproxy host as client’s Gateway and Primary DNS I got no internet on the client device(Android 8.1). When I open Wireshark on the host machine I see that when client attempts to resolve any host, it receives an ICMP packet with destination unreachable.
I had the same issue on a linux machine few months ago and what I did is to install dnsmasq with some rules for the interface and address which incoming DNS requests need to be processed. Unfortunately the same solution doesn’t work in this situation. So most likely I’m missing something
I’ve read the Transparent proxy setup documentation several times and I don’t see anything about dnsmasq usage. So I guess that I do it in the wrong way, however, a similar setup with this small DSN server worked on linux few months ago.
So my question is, does the mitmproxy support DNS resolution? Or the DNSMasq is a good choice.
I do tried with disabled firewall and the same issue was observed. What do you think I’m missing?