FreeBSD Bugzilla – Attachment 14418 Details for
Bug 27070
save/restore IP Filter's state tables at shutdown/reboot (patch)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.38 KB, created by
stefan.schmidt
on 2001-05-04 00:30:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
stefan.schmidt
Created:
2001-05-04 00:30:03 UTC
Size:
2.38 KB
patch
obsolete
>Index: rc.network >=================================================================== >RCS file: /home/cvs/src/etc/rc.network,v >retrieving revision 1.74.2.14 >diff -u -r1.74.2.14 rc.network >--- rc.network 2001/03/06 02:21:59 1.74.2.14 >+++ rc.network 2001/05/03 21:23:58 >@@ -71,6 +71,15 @@ > fi > ;; > esac >+ case "${ipfs_enable}" in >+ [Yy][Ee][Ss]) >+ if [ -r "/var/db/ipf/ipstate.ipf" ]; then >+ echo -n ' ipfs'; >+ eval ${ipfs_program:-/sbin/ipfs -R} \ >+ ${ipfs_flags} >+ fi >+ ;; >+ esac > else > ipfilter_enable="NO" > echo -n ' NO IPF RULES' >Index: rc.shutdown >=================================================================== >RCS file: /home/cvs/src/etc/rc.shutdown,v >retrieving revision 1.4.2.9 >diff -u -r1.4.2.9 rc.shutdown >--- rc.shutdown 2001/03/12 13:29:24 1.4.2.9 >+++ rc.shutdown 2001/05/03 21:24:37 >@@ -83,6 +83,17 @@ > ;; > esac > >+# Save IP Filter state tables >+ >+case ${ipfs_enable} in >+[Yy][Ee][Ss]) >+ echo -n 'Saving IP Filter state tables:' >+ eval ${ipfs_program:-/sbin/ipfs -W} ${ipfs_flags} >+ ;; >+esac >+ >+echo . >+ > # Insert other shutdown procedures here > > echo '.' >Index: defaults/rc.conf >=================================================================== >RCS file: /home/cvs/src/etc/defaults/rc.conf,v >retrieving revision 1.53.2.21 >diff -u -r1.53.2.21 rc.conf >--- defaults/rc.conf 2001/03/19 09:33:59 1.53.2.21 >+++ defaults/rc.conf 2001/05/03 21:26:50 >@@ -69,6 +69,10 @@ > ipnat_program="/sbin/ipnat -CF -f" # program and how to specify rules file > ipnat_rules="/etc/ipnat.rules" # rules definition file for ipnat > ipnat_flags="" # additional flags for ipnat >+ipfs_enable="YES" # Set to YES to enable saving and restoring >+ # of state tables at shutdown and boot >+ipfs_flags="" # additional flags for ipfs >+ipfs_program="/sbin/ipfs" # where the ipfs program lives > ipmon_enable="NO" # Set to YES for ipmon; needs ipfilter, too! > ipmon_program="/sbin/ipmon" # where the ipfilter monitor program lives > ipmon_flags="-Ds" # typically "-Ds" or "-D /var/log/ipflog" >Index: mtree/BSD.var.dist >=================================================================== >RCS file: /home/cvs/src/etc/mtree/BSD.var.dist,v >retrieving revision 1.43.2.1 >diff -u -r1.43.2.1 BSD.var.dist >--- mtree/BSD.var.dist 2001/03/05 11:59:02 1.43.2.1 >+++ mtree/BSD.var.dist 2001/05/03 22:50:30 >@@ -26,6 +26,8 @@ > .. > /set mode=0755 > db >+ ipf >+ .. > pkg > .. > ..
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27070
: 14418