How to simulate corporate Proxy Server on my development machine
You could have an isolated operating system instance in a virtual machine, which gets access to internet only through a proxy. When you need to test, move the app into the OS inside the virtual machine and see how it behaves.
The easiest way I found is:
Download and run Fiddler proxy (it's free). It will automatically set itself as a system proxy in Windows on each run. Also click
Rules -> Require Proxy Authentication
in the top menu if you want to test authentication to the proxy (username and password are "1
").Open Windows Firewall, then
Advanced settings -> Windows Firewall Properties
. Block all outbound connections for all profiles you need (domain, private, public) and clickOK
.- Add new outbound firewall rule to allow all access for
8888
port (default Fiddler port) or "%LOCALAPPDATA%\Programs\Fiddler\Fiddler.exe" app.
That's it, only the programs which use your proxy settings (http://1:[email protected]:8888
) will work.
Since you've already got some sort of LAN setup, you could extend that with some sort of internal proxy.
Stick a machine on the main LAN, and then have that linked to another (new) small scale LAN (got a old 4-port hub laying about?). Configure this machine to emulate the production enviroment proxy, and then you just hook up a test machine to the "extended" LAN - where it is only possible to connect using the proxy machine you've configured.
Requires a bit of extra hardware and effort, but is the "real" alternative to using a few VM's.