summaryrefslogtreecommitdiffstats
path: root/etc/periodic/security/550.ipfwlimit
Commit message (Collapse)AuthorAgeFilesLines
* Make the period of each periodic security script configurable.jlh2013-08-271-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are now six additional variables weekly_status_security_enable weekly_status_security_inline weekly_status_security_output monthly_status_security_enable monthly_status_security_inline monthly_status_security_output alongside their existing daily counterparts. They all have the same default values. All other "daily_status_security_${scriptname}_${whatever}" variables have been renamed to "security_status_${name}_${whatever}". A compatibility shim has been introduced for the old variable names, which we will be able to remove in 11.0-RELEASE. "security_status_${name}_enable" is still a boolean but a new "security_status_${name}_period" allows to define the period of each script. The value is one of "daily" (the default for backward compatibility), "weekly", "monthly" and "NO". Note that when the security periodic scripts are run directly from crontab(5) (as opposed to being called by daily or weekly periodic scripts), they will run unless the test is explicitely disabled with a "NO", either for in the "_enable" or the "_period" variable. When the security output is not inlined, the mail subject has been changed from "$host $arg run output" to "$host $arg $period run output". For instance: myfbsd security run output -> myfbsd security daily run output I don't think this is considered as a stable API, but feel free to correct me if I'm wrong. Finally, I will rearrange periodic.conf(5) and default/periodic.conf to put the security options in their own section. I left them in place for this commit to make reviewing easier. Reviewed by: hackers@
* Improve periodic/security/550.ipfwlimit a bit:antoine2008-08-101-6/+3
| | | | | | | | | - don't run it if net.inet.ip.fw.verbose = 0 as it is pointless - handle rules without logging limit correctly [1] (those rules show up without logamount in "ipfw -a list") PR: conf/126060 [1] MFC after: 1 month
* A new version of rev. 1.4: postpone a temporary file creationmaxim2005-09-111-1/+1
| | | | | | | | until we realize if ipfw(4) ever used. PR: bin/85970 Submitted by: Andre Albsmeier MFC after: 3 days
* Fix braino in last commit. Print nothing if ipfw(4) is not present.glebius2005-08-311-2/+2
|
* - Correctly parse output, when logging amount is limited in theglebius2005-08-201-7/+15
| | | | | | | | | | rule itself, not in verbose_limit sysctl. [1] - Do check rules, even if verbose_limit is set 0. Rules may have their own log limits. PR: conf/77929 Submitted by: Andriy Gapon [1] Reviewed by: matteo
* Replace "ipfw l", which is now deprecated, with "ipfw list".ssouhlal2005-02-231-1/+1
| | | | Approved by: grehan (mentor)
* Have mktemp(1) construct the temporary file name for us insteadmtm2003-06-301-1/+1
| | | | | | of providing a template manually. Submitted by: Lars Eggert <larse@isi.edu>
* Avoid using perl in the periodic & security scripts. This brings thekeramida2002-12-071-2/+4
| | | | | | base system one step closer to being totally perl-free. Approved by: re (jhb)
* Only create a temporary file if we are actually going to do somethingcjc2002-08-251-1/+1
| | | | | | | | | in the script. Eliminates a bug where we create a temp file, but don't delete it since the rm(1) is only done if the check is enabled. PR: bin/40960 Submitted by: frf <frf@xocolatl.com> MFC after: 3 days
* Tighten up temporary file permissions and move them to ${TMPDIR:-/tmp}brian2002-05-171-1/+1
| | | | | Problem reported by: lumpy <lumpy@the.whole.net> MFC after: 3 days
* Work around the bugfeature of test(1).ru2001-12-141-1/+1
| | | | PR: bin/32822
* Long ago, there was just /etc/daily. Then /etc/security was split outcjc2001-12-071-0/+61
of /etc/daily. Some time later, /etc/daily became a set of periodic(8) scripts. Now, this evolution continues, and /etc/security has been broken into periodic(8) scripts to make local customization easier and more maintainable. Reviewed by: ru Approved by: ru
OpenPOWER on IntegriCloud