This is the configuration I’m trying to achieve:
The client (web browser) is configured to use a local SOCKS proxy (e.g. running at 127.0.0.1:1080)
The SOCKS proxy (whose purpose is network throttling) redirects outbound connections to mitmdump (e.g. 127.0.0.1:8080)
mitmdump is running server-replay of a recorded session and plays back the responses.
Currently this fails because, I believe, mitmproxy is running in HTTP proxy mode (and the client is not configured to connect to HTTP proxy).
127.0.0.1:60748: Cannot connect to server, no server address given.
127.0.0.1:60748:ProtocolException('Cannot connect to server, no server address given.',)
I though that --transparent mode would work here (although I don’t need the network layer traffic redirection since I have that in place via my SOCKS proxy).
However I get the following error,
127.0.0.1:60817: Transparent mode failure: RuntimeError('Could not resolve original destination.',)
127.0.0.1:60817: ProtocolException("Transparent mode failure: RuntimeError('Could not resolve original destination.',)",)
Any ideas?
Is this possible in general?
Thank you,
Andrew