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.

Upstream Proxy: Skip proxy for some destinations

See original GitHub issue

I’m in a corporate network where internet access is only possible through a proxy, so I have all the relevant environment variables set:

$ env | grep -i proxy | sort
http_proxy=http://proxy.corp:8888
HTTP_PROXY=http://proxy.corp:8888
https_proxy=http://proxy.corp:8888
HTTPS_PROXY=http://proxy.corp:8888
no_proxy=localhost,corp,127.0.0.1
NO_PROXY=localhost,corp,127.0.0.1

Now when I use mitmproxy, I can start it with --upstream-proxy $http_proxy and it will forward requests for public internet servers correctly, but it will fail with intranet servers, since it doesn’t see the $no_proxy variable. I see two options:

  1. Add an option to fetch the upstream proxy from the various *_proxy environment variables.
  2. Add an --upstream-proxy-skip option to support the $no_proxy usecase.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
scaradimcommented, Jun 27, 2017

+1

1reaction
ks07commented, Nov 3, 2017

@mhils That looks ideal, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bypassing an Upstream Proxy for a Specific Domain
This article explains how to bypass an upstream proxy for a specific domain. ... Define a destination upstream proxy filter, including the domain...
Read more >
Bypass Upstream Proxy - Fiddler Classic - Documentation
Configuration code to bypass the upstream proxy for all requests to a specific domain.
Read more >
How to bypass a Proxy in an Explicit environment
Edit the browser settings to bypass the Proxy for specific destinations. (Example: For IE, Edge and Chrome on Windows systems: Internet options > ......
Read more >
Configuring proxy bypass destinations with firewall redirect
You can configure the cloud service to allow users to access some domains without policy enforcement. These are called proxy bypass destinations.
Read more >
When is the Upstream Proxy used? - Sophos Firewall
Quick overview of our set up. We have multiple sites with their own XGs (SFOS 17.1.1 MR1). Each site XG is in Bridge...
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