Skip to content

Windows: Simulate an enterprise proxy on a single developer machine

BergWerkGIS edited this page Oct 24, 2014 · 2 revisions

Intro

Sometimes it is necessary to simulate a proxy on a developer machine, that otherwise has free internet access.

e.g. when troubleshooting Mapbox Studio:

Prepare

Fiddler

Download and install free Fiddler4: http://www.telerik.com/download/fiddler

Windows Firewall

  • open properties

  • block all outbound connections:
    • Domain Profile
    • Private Profile
    • Public Profile

  • create new outbound rule

  • type = Program

  • Browse... to where you installed Fiddler and select Fiddler.exe

  • Allow the connection

  • applies to Domain, Private and Public

  • name your rule, e.g. ALLOW FIDDLER -> Finish

Now all programs (except Fiddler) are blocked by the firewall and there is no internet access! Don't forget to undo your changes in the firewall properties when you are done debugging.

Use it

  • Start Fiddler
  • Set the proxy of the program you want to allow to have internet access via proxy to http://localhost:8888 or http://127.0.0.1:8888
  • 8888 is the default port Fiddler listens on, it can be changed via Tools -> Fiddler Options -> Connections -> Fiddler listens on port:
  • If you need to test authentication check Rules -> Require Proxy Authentication
    • user: 1
    • pwd: 1
    • proxy setting with auth: http://1:1@127.0.0.1:8888
Clone this wiki locally