routing (80515) | routing (80683) |
---|---|
1#!/bin/sh - 2# 3# Copyright (c) 1993 The FreeBSD Project 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1#!/bin/sh - 2# 3# Copyright (c) 1993 The FreeBSD Project 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/etc/rc.d/routing 80515 2001-07-28 19:57:57Z markm $ | 27# $FreeBSD: head/etc/rc.d/routing 80683 2001-07-30 23:12:02Z darrenr $ |
28# From: @(#)netstart 5.9 (Berkeley) 3/30/91 29# 30 31# Note that almost all of the user-configurable behavior is no longer in 32# this file, but rather in /etc/defaults/rc.conf. Please check that file 33# first before contemplating any changes here. If you do need to change 34# this file for some reason, we would like to know about it. 35 --- 19 unchanged lines hidden (view full) --- 55 if [ -z "`hostname -s`" ]; then 56 hostname ${hostname} 57 echo -n ' hostname' 58 fi 59 60 # Establish ipfilter ruleset as early as possible (best in 61 # addition to IPFILTER_DEFAULT_BLOCK in the kernel config file) 62 # | 28# From: @(#)netstart 5.9 (Berkeley) 3/30/91 29# 30 31# Note that almost all of the user-configurable behavior is no longer in 32# this file, but rather in /etc/defaults/rc.conf. Please check that file 33# first before contemplating any changes here. If you do need to change 34# this file for some reason, we would like to know about it. 35 --- 19 unchanged lines hidden (view full) --- 55 if [ -z "`hostname -s`" ]; then 56 hostname ${hostname} 57 echo -n ' hostname' 58 fi 59 60 # Establish ipfilter ruleset as early as possible (best in 61 # addition to IPFILTER_DEFAULT_BLOCK in the kernel config file) 62 # |
63 if /sbin/ipfstat -i > /dev/null 2>&1; then 64 ipfilter_in_kernel=1 65 else 66 ipfilter_in_kernel=0 67 fi 68 |
|
63 case "${ipfilter_enable}" in 64 [Yy][Ee][Ss]) | 69 case "${ipfilter_enable}" in 70 [Yy][Ee][Ss]) |
71 if [ "${ipfilter_in_kernel}" -eq 0 ] && kldload ipl; then 72 ipfilter_in_kernel=1 73 echo "Kernel ipfilter module loaded." 74 elif [ "${ipfilter_in_kernel}" -eq 0 ]; then 75 echo "Warning: ipfilter kernel module failed to load." 76 fi 77 |
|
65 if [ -r "${ipfilter_rules}" ]; then 66 echo -n ' ipfilter'; 67 ${ipfilter_program:-/sbin/ipf -Fa -f} \ 68 "${ipfilter_rules}" ${ipfilter_flags} 69 case "${ipmon_enable}" in 70 [Yy][Ee][Ss]) 71 echo -n ' ipmon' 72 ${ipmon_program:-/sbin/ipmon} ${ipmon_flags} --- 737 unchanged lines hidden --- | 78 if [ -r "${ipfilter_rules}" ]; then 79 echo -n ' ipfilter'; 80 ${ipfilter_program:-/sbin/ipf -Fa -f} \ 81 "${ipfilter_rules}" ${ipfilter_flags} 82 case "${ipmon_enable}" in 83 [Yy][Ee][Ss]) 84 echo -n ' ipmon' 85 ${ipmon_program:-/sbin/ipmon} ${ipmon_flags} --- 737 unchanged lines hidden --- |