Skip to content

Instantly share code, notes, and snippets.

@myvyang
Last active March 6, 2020 06:34
Show Gist options
  • Save myvyang/bd8c8fa35dd61469107807d7e916c17d to your computer and use it in GitHub Desktop.
Save myvyang/bd8c8fa35dd61469107807d7e916c17d to your computer and use it in GitHub Desktop.
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