Created
June 22, 2018 02:15
-
-
Save leohxj/046f1dde53b530631fb13dd36b88228c to your computer and use it in GitHub Desktop.
转换 8080 -> 80 端口 #bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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