Fix some problems in the rules file loading and need for modload detection.
Found by: "James E. Housley" <housley@pr-comm.com>
This commit is contained in:
parent
a426d771bc
commit
19ea78c7dd
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.9 1997/07/06 00:33:34 pst Exp $
|
||||
# $Id: rc.network,v 1.10 1997/09/11 10:59:02 danny Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -58,7 +58,7 @@ network_pass1() {
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
if [ $? ] ; then
|
||||
if [ $? = 1 ] ; then
|
||||
firewall_in_kernel=0
|
||||
else
|
||||
firewall_in_kernel=1
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.9 1997/07/06 00:33:34 pst Exp $
|
||||
# $Id: rc.network,v 1.10 1997/09/11 10:59:02 danny Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -58,7 +58,7 @@ network_pass1() {
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
if [ $? ] ; then
|
||||
if [ $? = 1 ] ; then
|
||||
firewall_in_kernel=0
|
||||
else
|
||||
firewall_in_kernel=1
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.9 1997/07/06 00:33:34 pst Exp $
|
||||
# $Id: rc.network,v 1.10 1997/09/11 10:59:02 danny Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -58,7 +58,7 @@ network_pass1() {
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
if [ $? ] ; then
|
||||
if [ $? = 1 ] ; then
|
||||
firewall_in_kernel=0
|
||||
else
|
||||
firewall_in_kernel=1
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.9 1997/07/06 00:33:34 pst Exp $
|
||||
# $Id: rc.network,v 1.10 1997/09/11 10:59:02 danny Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -58,7 +58,7 @@ network_pass1() {
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
if [ $? ] ; then
|
||||
if [ $? = 1 ] ; then
|
||||
firewall_in_kernel=0
|
||||
else
|
||||
firewall_in_kernel=1
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.9 1997/07/06 00:33:34 pst Exp $
|
||||
# $Id: rc.network,v 1.10 1997/09/11 10:59:02 danny Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -58,7 +58,7 @@ network_pass1() {
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
if [ $? ] ; then
|
||||
if [ $? = 1 ] ; then
|
||||
firewall_in_kernel=0
|
||||
else
|
||||
firewall_in_kernel=1
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.9 1997/07/06 00:33:34 pst Exp $
|
||||
# $Id: rc.network,v 1.10 1997/09/11 10:59:02 danny Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -58,7 +58,7 @@ network_pass1() {
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
if [ $? ] ; then
|
||||
if [ $? = 1 ] ; then
|
||||
firewall_in_kernel=0
|
||||
else
|
||||
firewall_in_kernel=1
|
||||
|
@ -1,6 +1,6 @@
|
||||
############
|
||||
# Setup system for firewall service.
|
||||
# $Id: rc.firewall,v 1.12 1997/05/05 07:08:31 jkh Exp $
|
||||
# $Id: rc.firewall,v 1.13 1997/09/11 10:59:00 danny Exp $
|
||||
|
||||
############
|
||||
# Define the firewall type in /etc/rc.conf. Valid values are:
|
||||
@ -171,5 +171,5 @@ elif [ "${firewall_type}" = "simple" ]; then
|
||||
# Everything else is denied as default.
|
||||
|
||||
elif [ "${firewall_type}" != "NONE" -a -r "${firewall_type}" ]; then
|
||||
$fwcmd ${firewall}
|
||||
$fwcmd ${firewall_type}
|
||||
fi
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.9 1997/07/06 00:33:34 pst Exp $
|
||||
# $Id: rc.network,v 1.10 1997/09/11 10:59:02 danny Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -58,7 +58,7 @@ network_pass1() {
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
if [ $? ] ; then
|
||||
if [ $? = 1 ] ; then
|
||||
firewall_in_kernel=0
|
||||
else
|
||||
firewall_in_kernel=1
|
||||
|
Loading…
Reference in New Issue
Block a user