View | Details | Raw Unified | Return to bug 27070
Collapse All | Expand All

(-)rc.network (+9 lines)
Lines 71-76 Link Here
71
				fi
71
				fi
72
				;;
72
				;;
73
			esac
73
			esac
74
			case "${ipfs_enable}" in
75
			[Yy][Ee][Ss])
76
				if [ -r "/var/db/ipf/ipstate.ipf" ]; then
77
					echo -n ' ipfs';
78
					eval ${ipfs_program:-/sbin/ipfs -R} \
79
						${ipfs_flags}
80
				fi
81
				;;
82
			esac
74
		else
83
		else
75
			ipfilter_enable="NO"
84
			ipfilter_enable="NO"
76
			echo -n ' NO IPF RULES'
85
			echo -n ' NO IPF RULES'
(-)rc.shutdown (+11 lines)
Lines 83-88 Link Here
83
	;;
83
	;;
84
esac
84
esac
85
85
86
# Save IP Filter state tables
87
88
case ${ipfs_enable} in
89
[Yy][Ee][Ss])
90
	echo -n 'Saving IP Filter state tables:'
91
	eval ${ipfs_program:-/sbin/ipfs -W} ${ipfs_flags}
92
	;;
93
esac
94
95
echo .
96
86
# Insert other shutdown procedures here
97
# Insert other shutdown procedures here
87
98
88
echo '.'
99
echo '.'
(-)defaults/rc.conf (+4 lines)
Lines 69-74 Link Here
69
ipnat_program="/sbin/ipnat -CF -f" # program and how to specify rules file
69
ipnat_program="/sbin/ipnat -CF -f" # program and how to specify rules file
70
ipnat_rules="/etc/ipnat.rules"	# rules definition file for ipnat
70
ipnat_rules="/etc/ipnat.rules"	# rules definition file for ipnat
71
ipnat_flags=""			# additional flags for ipnat
71
ipnat_flags=""			# additional flags for ipnat
72
ipfs_enable="YES"		# Set to YES to enable saving and restoring 
73
				# of state tables at shutdown and boot
74
ipfs_flags=""			# additional flags for ipfs
75
ipfs_program="/sbin/ipfs"	# where the ipfs program lives
72
ipmon_enable="NO"		# Set to YES for ipmon; needs ipfilter, too!
76
ipmon_enable="NO"		# Set to YES for ipmon; needs ipfilter, too!
73
ipmon_program="/sbin/ipmon"	# where the ipfilter monitor program lives
77
ipmon_program="/sbin/ipmon"	# where the ipfilter monitor program lives
74
ipmon_flags="-Ds"		# typically "-Ds" or "-D /var/log/ipflog"
78
ipmon_flags="-Ds"		# typically "-Ds" or "-D /var/log/ipflog"
(-)mtree/BSD.var.dist (+2 lines)
Lines 26-31 Link Here
26
    ..
26
    ..
27
/set mode=0755
27
/set mode=0755
28
    db
28
    db
29
        ipf
30
        ..
29
        pkg
31
        pkg
30
        ..
32
        ..
31
    ..
33
    ..

Return to bug 27070