aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorbunnyhero <bunnyhero@bunnyhero.com>2018-07-05 12:35:55 -0400
committerGitHub <noreply@github.com>2018-07-05 12:35:55 -0400
commite5121ee9770d62bbc7c2b5597c89a7708f71c303 (patch)
tree7ee58ca1637a06a378e080a7e17754cec761d3ab /docs
parent3dec4176cfd86a8adf879e76dcf9f9a599bf2996 (diff)
downloadmitmproxy-e5121ee9770d62bbc7c2b5597c89a7708f71c303.tar.gz
mitmproxy-e5121ee9770d62bbc7c2b5597c89a7708f71c303.tar.bz2
mitmproxy-e5121ee9770d62bbc7c2b5597c89a7708f71c303.zip
Update howto-transparent.md
i got a syntax error on macOS high sierra with the existing example pf.conf line. based on sample pf rules i found online, i believe it was missing the `pass` keyword, which i added. also, the surrounding text refers to "two lines," when there is only one, so i've updated that too.
Diffstat (limited to 'docs')
-rw-r--r--docs/src/content/howto-transparent.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/content/howto-transparent.md b/docs/src/content/howto-transparent.md
index 07a21ec9..ae36f579 100644
--- a/docs/src/content/howto-transparent.md
+++ b/docs/src/content/howto-transparent.md
@@ -163,14 +163,14 @@ for earlier versions of OSX.
sudo sysctl -w net.inet.ip.forwarding=1
{{< / highlight >}}
-### 2. Place the following two lines in a file called, say, **pf.conf**.
+### 2. Place the following line in a file called, say, **pf.conf**.
{{< highlight none >}}
-rdr on en0 inet proto tcp to any port {80, 443} -> 127.0.0.1 port 8080
+rdr pass on en0 inet proto tcp to any port {80, 443} -> 127.0.0.1 port 8080
{{< / highlight >}}
-These rules tell pf to redirect all traffic destined for port 80 or 443
+This rule tells pf to redirect all traffic destined for port 80 or 443
to the local mitmproxy instance running on port 8080. You should replace
`en0` with the interface on which your test device will appear.