Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 whoever 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 Nov 16, '07 06:01:22AM
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 | # ]