What is the modern way to do port-forwarding on El Capitan? (forward port 80 to 8080) The old utility ipfw was discouraged in recent versions of Mac OS X and is now gone from El Capitan.

What is the modern way to do port forwarding in El Capitan? 

I simply want port 80 to forward to port 8080.
To forward all port 80 traffic to port 8080, you can enter the following from the Terminal command line.

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


Taken from https://salferrarello.com/mac-pfctl-port-forwarding/