I've set up a virtual machine to redirect port 80 connections to some servers to my mitmproxy instance.
Now I wish to set up mitmproxy (or libmproxy) to modify and forward requests to a server of my choosing, depending on the HTTP Host
header (and also modify responses). How do I accomplish this? Transparent proxy seems to read off the intended target server from the lower network layers, and I don't have that (the VM connects straight to my proxy).