marcandrewb
1/24/2017 - 7:17 PM

Port Forwarding

Port Forwarding

Forward Port 80 to port 8080 with Mac pfctl Port Forwarding

echo "
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
" | sudo pfctl -ef -

Remove Port Forwarding

sudo pfctl -F all -f /etc/pf.conf

Display Your Current Port Forwarding Rules

sudo pfctl -s nat