Deleted Added
full compact
3c3
< # $Id: rc.network,v 1.8 1997/05/19 07:46:48 jkh Exp $
---
> # $Id: rc.network,v 1.9 1997/07/06 00:33:34 pst Exp $
57,60c57,80
<
< # If IP filtering
< if [ -n "$firewall" -a "x$firewall" != "xNO" -a -f /etc/rc.firewall ] ; then
< echo -n ' firewall'
---
>
> # Initialize IP filtering using ipfw
> echo ""
> /sbin/ipfw -q flush > /dev/null 2>&1
> if [ $? ] ; then
> firewall_in_kernel=0
> else
> firewall_in_kernel=1
> fi
>
> if [ $firewall_in_kernel = 0 -a "x$firewall_enable" = "xYES" ] ; then
> modload /lkm/ipfw_mod.o
> if [ $? = 0 ]; then
> firewall_in_kernel=1 # module loaded successfully
> echo "Kernel firewall module loaded."
> else
> echo "Warning: firewall kernel module failed to load."
> fi
> fi
>
> # Load the filters if required
> if [ $firewall_in_kernel = 1 ]; then
> if [ -n "$firewall_enable" -a -f /etc/rc.firewall -a \
> "x$firewall_enable" = "xYES" ] ; then
61a82,86
> echo "Firewall rules loaded."
> else
> echo "Warning: kernel has firewall functionality, but firewall rules are not enabled."
> echo " All ip services are disabled."
> fi
63a89,90
> # Configure routing
>