Port forwarding for macOS
1 min readNov 17, 2016
echo "rdr pass proto tcp from any to any port {80,8080} -> 127.0.0.2 port 8080" | pfctl -Ef -
This way doesn’t survive rebooting though, which is exactly what I want.
echo "rdr pass proto tcp from any to any port {80,8080} -> 127.0.0.2 port 8080" | pfctl -Ef -
This way doesn’t survive rebooting though, which is exactly what I want.
A programmer. I have a serious blog here -> http://artori.us