<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 29, 2016, at 2:05 PM, Ryan Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>> wrote:</div><div class=""><div class=""><br class=""><blockquote type="cite" class="">On Sep 29, 2016, at 10:30 AM, Zachary Waibel <<a href="mailto:zjwaibel@gmail.com" class="">zjwaibel@gmail.com</a>> wrote:<br class=""><br class="">I've installed the latest MacPorts and my issue is that if I start apache2 using the command "sudo port load apache2” I can then find my website from outside my network. However, after restarting my Mac and I cannot find my website anymore. It turns out if I turn off macOS’s Firewall I can then find the website from the outside again. The other way I can solve it is by doing "sudo port unload apache2” and then "sudo port load apache2”, which seems to open port 80. However, after a restart the port is not opened, but apache2 is running. So is MacPorts not compatible with El Capitan’s Firewall?<br class=""><br class="">Thank you for any help!<br class=""></blockquote><br class="">Writing to the macports-users mailing list is probably the right thing to do. I'm Cc'ing the list now. To reply, please make sure you're subscribed to the list first.<br class=""><br class="">I've also been frustrated with the new macOS firewall for some years. I don't understand it. Maybe someone else on the list does and can give us both some advice.<br class=""></div></div></blockquote><div><br class=""></div><div>El Capitan uses PF [1] for the firewall. I believe you need to edit the configuration file manually and use the command line. Apple’s GUI in System Preferences is too simple to do this. </div></div><div class=""><br class=""></div><div class=""> - Edit <font face="Monaco" class="">/etc/pf.conf</font> with your favorite text editor</div><div class=""> - Add the following lines to the bottom of the file:</div><div class=""><font face="Monaco" class=""># Macports Apache<br class="">pass in proto tcp from any to any port 80</font></div><div class=""> - Reboot or manually reload the firewall:</div><div class=""><font face="Monaco" class="">sudo pfctl -vnf /etc/pf.conf</font></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">[1] <<a href="https://en.wikipedia.org/wiki/PF_(firewall)" class="">https://en.wikipedia.org/wiki/PF_(firewall)</a>></div><div class=""><br class=""></div><div class="">Cheers!</div><div class="">Frank</div><div class=""><br class=""></div></body></html>