Skip to content

Instantly share code, notes, and snippets.

@leohxj
Created June 22, 2018 02:15
Show Gist options
  • Select an option

  • Save leohxj/046f1dde53b530631fb13dd36b88228c to your computer and use it in GitHub Desktop.

Select an option

Save leohxj/046f1dde53b530631fb13dd36b88228c to your computer and use it in GitHub Desktop.
转换 8080 -> 80 端口 #bash
echo "
rdr pass inet proto tcp from any to any port {80,8080} -> 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