[Discuss] OSX Lion firewall

Robert La Ferla robert at laferla.net
Mon Apr 29 16:33:43 EDT 2013


I need some help configuring some basic firewall rules for OSX Lion.  It's my understanding that OS X Lion uses "pf" but that "ipfw" is available but deprecated.

Using either of these, how can I:

Deny all traffic except:

1. Allow TCP port 80 BUT forward it to localhost:8080
2. Allow TCP port 22 from any IP address
3. Allow TCP port 8888 from specific IP addresses

Lastly, I want to make these rules persistent so that they are reapplied on reboot.

Thanks in advance,
Robert




More information about the Discuss mailing list