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]
Pascal Suter created
man-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 --ssl-insecure
 +(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: ", localhost"
  • man-in-the-middle_http_s_proxy_mitmproxy.1634226819.txt.gz
  • Last modified: 14.10.2021 17:53
  • by Pascal Suter