Mac firewall blocking nginx (port 80) from external side
- by Alex Ionescu
I installed nginx using ports and started it with sudo. Accessing the nginx welcome page from localhost works perfectly, however accessing it from an external computer fails.
Doing an nmap on the computer from the outside reveals
80/tcp filtered http
So clearly the mac firewall is blocking the port. I then proceed to add the nginx executable to the firewall exception list as seen in this image, however the nmap still shows up as port 80 being filtered and I'm unable to access the webpage. The exact binary that is in the list is /opt/local/sbin/nginx which to my knowledge seems correct
Any ideas what I should do? Thanks!
P.S. Turning the firewall off does allow me to access the website from the outside world, however that isn't an ideal solution.