Skip to content

Instantly share code, notes, and snippets.

@andywirv
Created June 1, 2017 09:10
Show Gist options
  • Save andywirv/bb66dc7e2c03749936b24e8383a5aa1d to your computer and use it in GitHub Desktop.
Save andywirv/bb66dc7e2c03749936b24e8383a5aa1d to your computer and use it in GitHub Desktop.
Forward port 443 to port 8080 on localhost. Workaround for Virtualbox NAT port forwarding of ports <1024
# 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 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment