For some reason when launching and then putting mitmweb into transparent mode, I receive a 502 bad gateway on my clients and the following error in the terminal:
192.168.178.40:41150: clientconnect 192.168.178.40:41150: Transparent mode failure: AttributeError("'Resolver' object has no attribute 'wfile'",) 192.168.178.40:41150: clientdisconnect
The reason I have to launch mitmweb in regular mode, and then switch it to transparent mode, is because
mitmweb --mode transparent throws the error:
C:\Users\Admin>mitmweb --mode transparent Error starting proxy server: PermissionError(13, 'Access is denied.', None, 5)
In order to fix this, I need to navigate to the
C:\Users\Admin\.mitmproxy and set the mode back to
Somewhere it seems that transparent mode is failing to initiate correctly.
Can anyone take a look with me?