I’m trying to do some testing of my companies IE11 zone policy. We have a production web server hosted externally that uses HTTPS and I want to test how our zone policy affects content. I’ve got a copy of the web server in our Testing LAN with the same SSL cert and configuration etc. This will allow me to update content/scripts without affecting anyone.
I want my test client to perform a dns lookup as normal for the hosted web server but I want mitmproxy to proxy/redirect that connection to my LAN web server. The idea here is that the test client web browser will believe the content has come from the external site and apply the correct zone policy. I think one of the challenges here is that the connection is HTTPS but as I own the certs it should be okay? Also would mitmproxy need to re-resolve the dns name and/or IP address, so it can redirect locally.
Is this possible?