Bug 27070 - save/restore IP Filter's state tables at shutdown/reboot (patch)
Summary: save/restore IP Filter's state tables at shutdown/reboot (patch)
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Darern Reed
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-04 00:30 UTC by stefan.schmidt
Modified: 2002-03-26 10:04 UTC (History)
0 users

See Also:


Attachments
file.diff (2.38 KB, patch)
2001-05-04 00:30 UTC, stefan.schmidt
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description stefan.schmidt 2001-05-04 00:30:03 UTC
IP Filter's utility program "ipfs" is supposed to save and restore IP
Filter's internal state tables. By saving state tables at shutdown and
restoring them at boot-time, already established connections aren't
disconnected (or hang, depending on your rules).

Fix: I've added a few new configuration parameters (ipfs_*) to 
etc/defaults/rc.conf that maybe overridden in etc/rc.conf:
ipfs_enable, ipfs_flags, ipfs_program.

The attached patches (against RELENG_4, but should also 
apply to CURRENT) also modify rc.network for restoring
the state tables at boot-time. rc.shutdown saves the tables
at shutdown-time. (is there a better place to put this?)

Directory db/ipf was added to etc/mtree.var.dist.

rc.conf(5) isn't ready yet but I'll happily provide patches to
anyone who wants to commit this functionality.

Note that PR bin/27063 (/sbin/ipfs missing) is a prerequisit.
How-To-Repeat: (new functionality, thus no How-To-Repeat)
Comment 1 Peter Pentchev freebsd_committer freebsd_triage 2001-05-04 06:53:43 UTC
Responsible Changed
From-To: freebsd-bugs->darrenr

Over to the maintainer (and author) of the IPFilter suite.
Comment 2 Darern Reed freebsd_committer freebsd_triage 2001-10-20 05:33:18 UTC
State Changed
From-To: open->feedback

these changes have been applied to -current. 

updates for rc.conf and rc.conf(5) would be appreciated.
Comment 3 Guido van Rooij 2001-11-14 13:35:26 UTC
Arjan de Vet and Doug Barton have made patches to the FreeBSD rc system
that should solve all of the known problems with IPFilter.
Current and stable patches are available at the URL underneath.
Please be so kind to:
1) Test the patches if they do work for you
2) mail your feedback to Arjan de Vet (devet@devet.org)
3) If al is worked out and Arjan has the patches committed, please
update the PR.

Url:
http://home.iae.nl/users/devet/freebsd/
Comment 4 Darern Reed freebsd_committer freebsd_triage 2002-03-26 10:02:52 UTC
State Changed
From-To: feedback->closed

the patches for this change have been integrated.