Skip to content

Intercept traffic in local mode, then forward to upstream proxy #6786

Answered by mhils
lawrence-forooghian asked this question in Q&A
Discussion options

You must be logged in to vote

mitmproxy --mode local:curl --mode upstream:http://localhost:8081

This commands starts two proxy modes: First, proxy all local cURL traffic. Second, spawn an HTTP proxy on port 8080 that will forward all traffic to another HTTP proxy upstream at localhost:8081. Proxy modes are not "interconnected".
There currently is no (easy) way to use an upstream proxy with local redirect mode.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lawrence-forooghian
Comment options

Answer selected by lawrence-forooghian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants