Skip to content

Instantly share code, notes, and snippets.

@andywirv
Created June 1, 2017 09:10
Show Gist options
  • Select an option

  • Save andywirv/bb66dc7e2c03749936b24e8383a5aa1d to your computer and use it in GitHub Desktop.

Select an option

Save andywirv/bb66dc7e2c03749936b24e8383a5aa1d to your computer and use it in GitHub Desktop.

Revisions

  1. andywirv created this gist Jun 1, 2017.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # N.B does not persist across reboots

    echo "
    rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8080
    " | sudo pfctl -ef -