From e5121ee9770d62bbc7c2b5597c89a7708f71c303 Mon Sep 17 00:00:00 2001 From: bunnyhero Date: Thu, 5 Jul 2018 12:35:55 -0400 Subject: 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. --- docs/src/content/howto-transparent.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/src') 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. -- cgit v1.2.3