question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transparent proxy support for upstream proxies

See original GitHub issue

Is the following setup possible?

Client <-> Transparent mimtproxy <-> Other upsteam proxies <-> HTTP/HTTPS Website

When I launch mitmproxy in transparent mode, both HTTP and HTTPS traffic is captured perfectly. However, when I try to use another http proxy from the client application, mitmproxy fails. This happens both when the final site is http and when it’s https:

HttpError('Invalid HTTP request form (expected: relative, got: absolute)',)

Is this supported or am I doing something wrong?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
a-goryachevcommented, Oct 12, 2016

+1 Complex ‘transparent+upstream’ mode out of the box could be very useful. Especially if you want to redirect request to different regular proxy servers if HTTP header match condition.

1reaction
loxKcommented, Jan 31, 2016

I need it! Any alternative ?

I need

Local App <-> IPTABLES REDIRECT <-> mimtproxy on a different host, non-transparent mode <-> HTTP/HTTPS Website

I tried using IP tables DNAT to redirect request to the mitmproxy on remote host and I get “HttpError(‘Invalid HTTP request form (expected: absolute, got: relative)’,)”

I tried using IP tables REDIRECT to a local mitmproxy in upstream mode to the remote mitmproxy and I get the same error …

Any workaround ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a Transparent Proxy and How is It Used? - Oxylabs
A type of transparent proxy, SSL proxy, can be used to inspect HTTPS traffic and improve security. An SSL proxy carries out SSL...
Read more >
What is a transparent proxy? How to detect and bypass
Like all network proxies, a transparent proxy intercepts and redirects data in transit, typically through the internet.
Read more >
What is a Transparent Proxy | Client vs. Server Side Use Cases
A transparent proxy, also known as an inline proxy, intercepting proxy or forced proxy, is a server that intercepts the connection between an...
Read more >
Upstream proxy authentication in transparent proxy mode
When the transparent proxy is configured, clients can access websites without configuring a web proxy in their browser. The downstream proxy sends the...
Read more >
What is a transparent proxy? Here's how it works - ExpressVPN
A transparent proxy (also called inline proxy, intercepting proxy, or forced proxy) is a server that sits between your computer and the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found