Last active
March 6, 2020 06:34
-
-
Save myvyang/bd8c8fa35dd61469107807d7e916c17d to your computer and use it in GitHub Desktop.
This file contains 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 proto tcp from any to any port {9111} -> 127.0.0.1 port 5555" | sudo pfctl -Ef - | |
sudo pfctl -s nat | |
编辑 | |
sudo vim /etc/pf.anchors/custom | |
清理: | |
sudo pfctl -F all -f /etc/pf.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment