Upstream Proxy: Skip proxy for some destinations
See original GitHub issueI’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:
- Add an option to fetch the upstream proxy from the various
*_proxy
environment variables. - Add an
--upstream-proxy-skip
option to support the$no_proxy
usecase.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1
@mhils That looks ideal, thanks.