Reputation: 55
I have a need to redirect mitmproxy to another proxy server. Let say an example.
Browser -> mitmproxy -> fiddler
Browser proxy was set to 8089 mitmproxy is running on 8089 fiddler listening on 8090 now how can i do proxy forward mitmproxy using -F
i tried mitmproxy -p 8089 -F localhost:8090, but the output was unrecognised argument -F
Any help ?
Thanks
Upvotes: 3
Views: 3521
Reputation: 641
-U
is deprecated now. You shall use --mode upstream:SPEC
mitmproxy --mode upstream:http://<target-proxy-ip>:<target-proxy-port> --upstream-auth <target-proxy-user-name>:<target-proxy-password> -p 3128 --set block_global=false
Reference: https://docs.mitmproxy.org/stable/concepts-modes/#upstream-proxy
Example (allows outside connection):
Server-1 (ip: x.x.x.x)
mitmproxy --proxyauth "user1:pass1" -p 3128 --set block_global=false
Server-2 (ip: y.y.y.y)
mitmproxy --mode upstream:http://x.x.x.x:3128 --upstream-auth user1:pass1 -p 3128 --set block_global=false
Client
Proxy: y.y.y.y:3128
Upvotes: 3
Reputation: 6770
You can specify an upstream proxy using -U
(which was previously called -F
).
Upvotes: 3