[Solved, kind of]Forward proxy?


I’m currently using reverse proxy:
http://domain1.tld -> mitmproxy -> http://domain2.tld .

But I would like it to work this way:
http://domain1.tld -> mitmproxy -> upstream/forward http/socks proxy -> http://domain2.tld .

So basically I would like mitmproxy to communicate with domain2.tld thru a separate proxy which I have set up.
DNS resolution for Domain2.tld should also be done thru the same proxy.

Sorry for broken english, please leave your suggestions.

Thank You!


I just used ‘socat’ .