Commit Graph

89 Commits

Author SHA1 Message Date
peter 9c1da17e90 pf needs to be started after the network is up, because some pf rules
derive IP address(es) from the interface (e.g "... from any to fxp0").
This however, creates window for possible attacks from the network.

Implement the solution proposed by YAMAMOTO Takashi:
Add /etc/defaults/pf.boot.conf and load it with the /etc/rc.d/pf_boot
script before starting the network. People who don't like the default
rules can override it with their own /etc/pf.boot.conf.
The default rules have been obtained from OpenBSD.

No objections on: tech-security
2005-08-23 12:12:56 +00:00
peter df0caa2637 Remove (pf)spamd. Its right to exist in NetBSD has been questioned since it
appeared and whether it's really part of pf or not is still unclear. Looking
at the other *BSDs it seems that they have left out spamd when importing pf,
and now we do that too. Also, the name conflicted with another more popular
used tool, after the rename to pfspamd it was left with completely unusable
documentation which apparently no-one wanted to fix.

A port of the latest spamd will be imported into pkgsrc soon.

Suggested by several people, no objections on last proposal on tech-userlevel.
2005-06-27 20:32:39 +00:00
lukem 1bd2839e9a Consistently use 0664 root:utmp for /var/log/{lastlog,wtmp}{,x}.
Rest of PR 18670.
2005-05-22 14:34:20 +00:00
peter 7147ba1184 PR/30177: Rui Paulo: /var/chroot/pflogd isn't created by default 2005-05-11 10:41:51 +00:00
lukem b26a3203a3 Add /etc/pam.conf and /etc/pam.d/* 2005-05-02 03:23:43 +00:00
lukem 8232ca0162 Tweaks for the move of postinstall from /etc to /usr/sbin 2005-04-17 23:12:40 +00:00
jwise bfd29aa656 /var/chroot/spamd is now /var/chroot/pfspamd. 2005-04-12 14:24:32 +00:00
christos f709224812 PR/18670: Charles Blundell: Add entries for lastlog and lastlogx 2005-03-04 16:14:46 +00:00
perry 87352ee9ba add ./var/chroot and subdirectories 2004-11-25 01:33:31 +00:00
dbj 4fe7bbb7da enable rc.d fixsb script
initial testing suggests that it is working and I am confident it
will not cause irrevocable damage
2004-04-18 04:02:27 +00:00
itohy 867dc753a9 Add /etc/locate.conf 2004-02-06 15:36:52 +00:00
christos 0120b80220 add identd 2004-02-01 02:32:58 +00:00
jmmv ec3213dda0 Add the veriexec rc.d script. 2004-01-14 10:51:54 +00:00
ragge 9f99c49364 Remove kvm.db, reminded by atatat. 2003-05-14 16:36:22 +00:00
lukem b8984d0017 etc/mail/aliases.db is optional. From [misc/18536] by Jeremy Reed. 2003-05-09 00:10:52 +00:00
lukem 14ec4984a1 etc/powerd/** is optional 2003-04-30 09:05:56 +00:00
thorpej 953de79cde Add a reset_button script. 2003-04-20 20:55:39 +00:00
thorpej 8332742ea3 Add powerd rc.d script and configuration scripts. 2003-04-18 05:42:04 +00:00
cjs 957075b57b Change ipsec.conf not to be world-readable and nodiff, so we don't expose keys
if they happen to be in that file. Also add /etc/racoon stuff.
2003-04-16 03:16:38 +00:00
lukem a1e70625a5 remove superfluous "uname=root gname=wheel" from etc/postfix/** entries 2003-04-15 06:21:51 +00:00
atatat ffb0f92a6c Add the new queue directory for the sendmail "mail submission" mode. 2003-03-24 15:21:18 +00:00
perry 9ae5a89aa8 it is okay for the sendmail and postfix .cf files to be writable by root 2003-01-08 15:34:18 +00:00
lukem ebdb5fe2ad Remove /usr/local (and children) from the base distribution; we shouldn't
be creating directories or modifying permissions under there.

(/usr/local/* is still retained in various default PATHs, for convenience)
2002-12-20 06:39:53 +00:00
elric 98839fb386 Added cgd rc.d script and put it in the appropriate postinstall and
mtree files.
2002-10-09 14:55:53 +00:00
perry 64d38d7104 add wtmpx 2002-09-16 02:36:53 +00:00
abs df86ef5a9f Split raidframe parity checking/rebuild out into raidframeparity, which is
called after quota so we don't end up with fsck and raidframe parity rebuild
taking forever after a crash/reboot.
While we are here check for raid[0-9].conf & raid[1-9][0-9].conf not
			    raid[0-9].conf & raid[0-9][0-9].conf
2002-09-03 15:35:51 +00:00
wiz bd93d53f7c Add /var/run/utmpx, requested by soren. 2002-09-03 00:56:08 +00:00
cjs 546cf4d2b0 Add exclude tag to dumpdates so that diffs do not show up in the daily security
report. This file is expected to change daily, and this is not a security
problem. (Also, the most recent dumps are already shown in the daily report.)
2002-08-27 02:01:37 +00:00
lukem f91d5a2f45 add wdogctl 2002-07-30 09:11:27 +00:00
tron fbf97bb599 Remove unused user and group "news" as discussed on "tech-userlevel". 2002-07-06 09:27:31 +00:00
yamt 3d67d222ff add wsmoused 2002-07-03 23:29:51 +00:00
jmcneill fdbb6f9c72 Add mixerctl rc.d script. 2002-06-02 18:38:35 +00:00
lukem 244b762de1 Complete the conversion back to the OpenSSH default configuration files of
"/etc/ssh/ssh_config" (from "/etc/ssh/ssh.conf") for ssh(1) and other
userland tools, and "/etc/ssh/sshd_config (from "/etc/ssh/sshd.conf")
for sshd(8).

etc/postinstall will detect this, and if "fix" is given, rename the files.
2002-04-29 08:23:34 +00:00
lukem 21d59649a5 add (optional) etc/postinstall 2002-04-29 07:28:27 +00:00
lukem 5260db633f etc/ssh is mode 0755 not 0644. Noted by Toru TAKAMIZU on current-users. 2002-03-27 07:15:57 +00:00
itojun f7086ae500 move ssh config file to /etc/ssh 2002-03-22 15:47:01 +00:00
itojun 960e8c173d add postfix config files. PR15659 2002-03-22 04:03:44 +00:00
wiz a287908210 Mark mk.conf optional, addressing install/15572. 2002-02-24 17:17:48 +00:00
veego 908b0c7ea5 Add ./etc/ipf6.conf 2002-02-19 21:33:13 +00:00
veego 6ff44bd71d etc/rc.d/NETWORK was renamed to etc/rc.d/NETWORKING 2002-02-03 08:33:14 +00:00
lukem 98228effd2 Use "nodiff" instead of "nomail" for the tag which is used to exclude
files from having the changes diff generated.  Suggested by Michael Graff.
2001-10-15 03:00:22 +00:00
lukem 9d713861f1 monitor etc/changelist again 2001-10-15 02:56:42 +00:00
lukem 96a1608ee4 Major overhaul, with help from Andrew Brown <atatat@netbsd.org>.
Features:
- Add a bunch of stuff to /etc/mtree/special to enable removal of
  /etc/changelist:
	- files which we want to monitor for changes but don't want to
	  see the diffs of (master.passwd, ssh_host_key, ...) are
	  tagged with "nomail"
	- files which we don't want to monitor are tagged with "exclude"
	  (such as netgroup.db, kvm.db, ...)
	- monitor /etc/mtree/special.local, /root/.ssh/*
	- remove /etc/changelist, and a bunch of XXX comments
	- use mtree(8)'s -D, -I, and -E to generate lists of files to
	  actually do the changelist stuff on.
	- support /etc/mtree/special.local as an optional user-provided
	  version of /etc/mtree/special (effectively, an enhanced
	  /etc/changelist)
- Add code to monitor: /etc/ifconfig.* /etc/raid*.conf /etc/rc.conf.d/*
  including support for these files being added and removed at will.
- If /sbin/fdisk exists, backup the output of "fdisk $disk" for all
  the active disk drives as part of $check_disklabels
- Check permissions on: ~/.ssh/* ~/.shosts

Details:
- Reorder initialisation of defaults
- Remove special case for /etc/master.passwd "monitor but don't email diffs"
  with general case for other similar files.
- Keep all `autogenerated' files (such as disklabel.*, setuid.current, ...)
  in "$backup_dir/work", to minimise name clashes.
- Add migrate_file(old, new) to do the hard work of migrating files
  from the old `top level' /var/backups mechanism to the `full path'
  mechanism recently added. Use this appropriately.
- Add backup_and_diff(file, printdiffs), to the hard work of backing-up
  and diff-ing files.
- Cleanup use of shell redirects
- /bin/sh supports ~root globbing, so use it.
- Improve umask checking; use awk regex rather than awk math
2001-10-12 05:18:23 +00:00
lukem ff2aa3f8e8 Take advantage of mtree(8)'s recently added support for absolute paths.
Use a default "/set uname=root gname=wheel".
This drastically reduces the size of the file, as well as making it
far more maintainable. The differences are:
	lines   words  bytes  filename
	  342    1633  16272  special-relative
	  295     998  11971  special-absolute
2001-10-05 16:11:46 +00:00
lukem 451df90b87 add /etc/defaults/*.conf 2001-10-02 03:02:10 +00:00
lukem 937f059e75 remove rule for pkgsrc - we don't have one for any of the other source
directories.   requested in [bin/13818]
2001-10-02 01:21:27 +00:00
lukem 3e5fe9c71e add etc/rc.d/*. fixes [bin/12729] 2001-10-02 01:08:11 +00:00
lukem 10887c7f1f rc.local is technically an optional file... 2001-10-02 00:26:07 +00:00
lukem d15062c3c7 add ssh{,d}.conf, ssh_known_hosts{,2}, ssh_host_{[rd]sa_,}key{.pub,} 2001-10-02 00:16:36 +00:00
lukem 6d044e5a56 add a bunch of optional etc stuff from changelist:
Distfile bootparams bootptab ccd.conf daily.local defaultdomain
	dhclient-enter-hooks dhclient-exit-hooks dhclient.conf dhcpd.conf
	disktab ethers ftpd.conf ftpwelcome gateways hesiod.conf hosts.allow
	hosts.deny hosts.lpd ifaliases ipf.conf ipnat.conf ipsec.conf
	monthly.local mygate myname netgroup netgroup.db netstart.local
	ntp.conf passwd.conf rbootd.conf rtadvd.conf security.local
	ttyaction usermgmt.conf weekly.local
- add required stuff from changelist:
	etc/floppytab etc/netconfig etc/sysctl.conf
    	var/cron/tabs/root
	var/yp/Makefile
sort mail/ into its proper place
add some comments to remind us of things to look at in the future
2001-10-01 08:01:36 +00:00