Skip to content

Instantly share code, notes, and snippets.

@cmpscabral
Created February 17, 2020 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmpscabral/b650be23cd37cdfc9f3213c2ae53d201 to your computer and use it in GitHub Desktop.
Save cmpscabral/b650be23cd37cdfc9f3213c2ae53d201 to your computer and use it in GitHub Desktop.
forward traffic to virtual machine
echo "
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443
" | sudo pfctl -ef -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment