Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the '10.5: Use a custom firewall in 10.5 with ipfw' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: Use a custom firewall in 10.5 with ipfw
Authored by: eagle on Fri, Nov 16 2007 at 6:01AM PST
I just create a script called /etc/rc.firewall, and call /etc/rc.firewall from /etc/rc.local.

/etc/rc.local looks like this:
#!/bin/sh

/usr/local/sbin/synergys -f
sh /etc/rc.firewall


/etc/rc.firewall looks like this:
#!/bin/sh

IPFW='/sbin/ipfw -q'

$IPFW -f flush

# first set up some basic rules
$IPFW add 2000 allow ip from any to any via lo*
$IPFW add 2050 allow log tcp from any to any out
$IPFW add 2060 allow log tcp from any to any established
...



[ Reply to This | # ]