man-in-the-middle_http_s_proxy_mitmproxy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

man-in-the-middle_http_s_proxy_mitmproxy [14.10.2021 17:53] – created Pascal Suterman-in-the-middle_http_s_proxy_mitmproxy [06.01.2022 15:32] (current) Pascal Suter
Line 15: Line 15:
 ] ]
 </code> </code>
 +
 +===== Docker =====
 +there is also a docker container available. here is a snippet out of a docker-compose config if you want to add mitm to your project to analyze traffic from your apps: 
 +<code yaml>
 +  proxy:
 +    image: mitmproxy/mitmproxy
 +    restart: always
 +    networks: 
 +      - intranet
 +    ports: 
 +      - 8888:8081
 +    command: mitmweb --web-host 0.0.0.0 --ssl-insecure
 +</code>
 +(note the ''--ssl-insecure'' option was only needed when analyzing traffic going to a server with an invalid or self-signed certificate)
 +
 +I have also added the following environment variables to the other containers, but i haven't found any linux utility that reads those yet, so you will probably have to manually configure the specific applications inside your containers for using a proxy. 
 +<code yaml>
 +    environment:
 +      HTTP_PROXY: "http://proxy:8080"
 +      HTTPS_PROXY: "https://proxy:8080"
 +      NO_PROXY: "127.0.0.1, localhost"
 +</code>
 +
 +
  • man-in-the-middle_http_s_proxy_mitmproxy.txt
  • Last modified: 06.01.2022 15:32
  • by Pascal Suter