Why is my port forwarding from port 8080 to port 80 not working on my MacOS (Mojave)?

by AviG   Last Updated July 11, 2019 19:01 PM - source

I'm trying to redirect from my localhost:8080 to port 80 so I can connect to a database that sites on a VM while using my own computer's browser to test, and I have typed the following into my terminal:

echo " rdr pass inet proto tcp from any to any port 8080 -> port 80 " | sudo pfctl -ef - and then sudo pfctl -s nat to see that my rule is loaded.

I then on my browser tried my localhost:80/wp-admin and the page hangs. I also tried adding an anchor to the pf.anchors folder, as laid out [here], and no dice.

What's doing on?


Related Questions

DPDK installation on UBUNTU 18.04

Updated May 25, 2019 08:01 AM