The documentation at https://mitmproxy.readthedocs.io/en/v2.0.2/features/passthrough.html#tutorial was not helpful.
I tried combinations of
--ignore '(?!<domain or ip>|<domain2 or ip2>)' and
--ignore '(?!<domain or ip>)(?!<domain2 or ip2>)', with and without leading
^ but no luck.
How do I ignore everything but a specific list of IPs or (sub)domains in transparent mode? Using v2.0.2
Just to add that
^(?!(.*)?\.?domain1\.com|(.*)?\.?domain2\.com).*$ matches everything but those two domains on regex101.com using the Python engine, but doesn’t seem to when used in mitmproxy with