title: MITM Proxy - How to intercept user requests in reverse proxy mode from inside/outside Web Application Server
body: <p>I am new to mitm.
  <a href="https://mitmproxy.org/" rel="nofollow noreferrer">https://mitmproxy.org/</a></p>
  <p>AppServer1 (A windows 2016 server) has our IIS website application (WebApp1) running (its running fine without any problems currently).
  I have added an SSL certificate as well, and it is loading fine without any issues.Chrome shows that it is trusted (&quot;Connection is secure&quot; when navigating from inside and outside AppServer1 server but &quot;within the LAN&quot;. So far we havnt allowed access to internet users as of yet until the app is completely ready.)</p>
  <p>We have a business requirement where</p>
  <ul>
  <li>we need to intercept all traffic/requests from users from outide AppServer1</li>
  <li>and send them to another application that we created (UserRequestDashboardApp),</li>
  <li>and ALSO we need mitm to send it to WebApp1 as well.</li>
  </ul>
  <p>I have read the articles multiple times and from what I understand, reverse proxy mode is the correct option to for our requirement.</p>
  <p>WebApp1 is running on url - customappservice1.com, port - 443</p>
  <p>I then started mitm (version 4.0.4) with the following CMD command</p>
  <pre><code>.\mitmdump -p 8080 --mode reverse:https://customappservice1.com
  </code></pre>
  <p><strong>I get the status proxy server listening at http://*:8080</strong></p>
  <p>I dont seem to see any traffic in the terminal when I type customappservice1.com on AppServer1 chrome browser or any server browser outside AppServer1.
  The WebApp1 pages load fine from outside and inside AppServer1 server but <strong>no traffic at all on the terminal</strong></p>
  <p>Can anyone please help me to capture the traffic on the terminal as an initial step before sending the traffic/requests to UserRequestDashboardApp AND WebApp1?</p>
  <p>I have tried running mitm normally and it works fine(I can see traffic/requests fine in the terminal)</p>
  <ul>
  <li>I launched mitm in CMD (It says <strong>Proxy Server listening at http://*:8080</strong>)</li>
  <li>I set the
  <ul>
  <li>Windows server proxy to = localhost</li>
  <li>Port = 8080</li>
  </ul>
  </li>
  </ul>