From ca9c60d2eb801c5902c1d2b890e7f1cb8e64959d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 5 Apr 2013 11:55:28 +1300 Subject: Docs. --- doc-src/transparent/osx.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'doc-src/transparent') diff --git a/doc-src/transparent/osx.html b/doc-src/transparent/osx.html index 20158873..77eea63b 100644 --- a/doc-src/transparent/osx.html +++ b/doc-src/transparent/osx.html @@ -20,7 +20,7 @@ OSX.
rdr on en2 inet proto tcp to any port 80 -> 127.0.0.1 port 8080
 rdr on en2 inet proto tcp to any port 443 -> 127.0.0.1 port 8080
 
- + These rules tell pf to redirect all traffic destined for port 80 or 443 to the local mitmproxy instance running on port 8080. You should replace en2 with the interface on which your test device will @@ -28,7 +28,7 @@ rdr on en2 inet proto tcp to any port 443 -> 127.0.0.1 port 8080 -
  • Configure pf with the rules: +
  • Configure pf with the rules:
    sudo pfctl -f pf.conf
    @@ -40,9 +40,6 @@ rdr on en2 inet proto tcp to any port 443 -> 127.0.0.1 port 8080
  • -
  • Configure your test device to use the host on which mitmproxy is - running as the default gateway.
  • -
  • Configure sudoers to allow mitmproxy to access pfctl. Edit the file /etc/sudoers on your system as root. Add the following line to the end of the file: @@ -55,7 +52,7 @@ rdr on en2 inet proto tcp to any port 443 -> 127.0.0.1 port 8080 you're special feel free to tighten the restriction up to the user running mitmproxy.
  • -
  • Finally, fire up mitmproxy. You probably want a command like this: +
  • Fire up mitmproxy. You probably want a command like this:
    mitmproxy -T --host
    @@ -65,4 +62,8 @@ rdr on en2 inet proto tcp to any port 443 -> 127.0.0.1 port 8080
  • +
  • Finally, configure your test device to use the host on which mitmproxy is + running as the default gateway.
  • + + -- cgit v1.2.3