Skip to content

Containerized mitmproxy (man-in-the-middle proxy) on top of Alpine Linux.

License

Notifications You must be signed in to change notification settings

Arne-B/docker-mitmproxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

DEPRECATED: Now merged as part of the official Mitmproxy Docker images

Containerized mitmproxy, man-in-the-middle proxy:

  • Small: Using Alpine Linux.
  • Simple: Exposes default port, easy to extend.
  • Secure: Runs as non-root UID/GID 7799 (selected randomly to avoid mapping to an existing user).

Usage

$ docker run --rm -it [-v $PWD:/home/mitmproxy/.mitmproxy] -p 8080:8080 wernight/mitmproxy

The volume mount is optional: It's to use the generated self-signed certificates.

You can also start mitmdump by just adding that to the end of the command-line.

Once started, you can set your application/browser proxy:

  • Protocol: HTTP
  • Server: localhost
  • Port: 8080

For example:

$ http_proxy=http://localhost:8080/ curl http://google.com
$ https_proxy=http://localhost:8080/ curl -k https://google.com

To use it for Android, first install the mitmproxy generated certificate, then set the Android Wi-Fi proxy.

Feedbacks

Improvement ideas and pull requests are welcome via Github Issue Tracker.

About

Containerized mitmproxy (man-in-the-middle proxy) on top of Alpine Linux.

Resources

License

Stars

Watchers

Forks

Packages

No packages published