aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/transparent
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-04-05 11:55:28 +1300
committerAldo Cortesi <aldo@nullcube.com>2013-04-05 11:55:28 +1300
commitca9c60d2eb801c5902c1d2b890e7f1cb8e64959d (patch)
tree6151045444ddc7b765d1032ef2e4762d5bfb8c56 /doc-src/transparent
parente3fd0e838d67d2e73176a7650d371b6ab59333e0 (diff)
downloadmitmproxy-ca9c60d2eb801c5902c1d2b890e7f1cb8e64959d.tar.gz
mitmproxy-ca9c60d2eb801c5902c1d2b890e7f1cb8e64959d.tar.bz2
mitmproxy-ca9c60d2eb801c5902c1d2b890e7f1cb8e64959d.zip
Docs.
Diffstat (limited to 'doc-src/transparent')
-rw-r--r--doc-src/transparent/osx.html13
1 files changed, 7 insertions, 6 deletions
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.
<pre class="terminal">rdr on en2 inet proto tcp to any port 80 -&gt; 127.0.0.1 port 8080
rdr on en2 inet proto tcp to any port 443 -&gt; 127.0.0.1 port 8080
</pre>
-
+
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 <b>en2</b> with the interface on which your test device will
@@ -28,7 +28,7 @@ rdr on en2 inet proto tcp to any port 443 -&gt; 127.0.0.1 port 8080
</li>
- <li> Configure pf with the rules:
+ <li> Configure pf with the rules:
<pre class="terminal">sudo pfctl -f pf.conf</pre>
@@ -40,9 +40,6 @@ rdr on en2 inet proto tcp to any port 443 -&gt; 127.0.0.1 port 8080
</li>
- <li> Configure your test device to use the host on which mitmproxy is
- running as the default gateway.</li>
-
<li> Configure sudoers to allow mitmproxy to access pfctl. Edit the file
<b>/etc/sudoers</b> 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 -&gt; 127.0.0.1 port 8080
you're special feel free to tighten the restriction up to the user running
mitmproxy.</li>
- <li> Finally, fire up mitmproxy. You probably want a command like this:
+ <li> Fire up mitmproxy. You probably want a command like this:
<pre class="terminal">mitmproxy -T --host</pre>
@@ -65,4 +62,8 @@ rdr on en2 inet proto tcp to any port 443 -&gt; 127.0.0.1 port 8080
</li>
+ <li> Finally, configure your test device to use the host on which mitmproxy is
+ running as the default gateway.</li>
+
+
</ol>