Commit Graph

214 Commits

Author SHA1 Message Date
nakayama f13fcfc711 Allow DHCPv6 so that dhcpcd(8) does not complain at boot when using
ia_pd option.
2024-05-03 20:48:58 +00:00
abs 011f078b4d Add support to npf_rules to rc.conf
- Allows overriding default from /etc/npf.conf
- Indicate rules file used in output
- Drop check for file presence in script - rely on npf exiting with error
2023-10-05 08:19:27 +00:00
riastradh 555079d39b /etc/rc.d/certctl_init: Default off.
Otherwise in systems without certctl_init=YES, such as systems
installed with sysinst(8) where it's unnecessary because the rehash
has already happened at install time, you'll get spurious warnings.

PR install/57629

XXX pullup-10
2023-09-27 01:27:32 +00:00
nia 3e3774f9ae Fix typo in comment. 2023-07-02 12:39:05 +00:00
riastradh e857694c31 rc.conf(5): Set entropy=wait by default.
We no longer block indefinitely -- if nothing else, the hardclock
timer should yield enough samples to unblock /dev/random on all but
the most severely deterministic machines -- so it should be generally
safe for availability to set entropy=wait.

This doesn't guarantee that HWRNG/seed has been provided before you
run ssh-keygen or call getentropy(3) in a user application, but it
does raise the security above netbsd<=9.

PR security/55659
PR lib/56905

XXX pullup-10
2023-06-30 21:44:09 +00:00
mlelstv b526349c2e Add start script to attach iscsi volumes at boot.
The default is to execute the script (iscsid_volumes=YES), so if you have
any volumes defined, you should also start iscsid (iscsid=YES) to avoid
error messages.
2023-02-03 13:53:40 +00:00
alnsn 0e59248afa Enable critical_filesystems_zfs. 2022-02-20 14:42:07 +00:00
riastradh cba96d16f7 Various entropy integration improvements.
- New /etc/security check for entropy in daily security report.

- New /etc/rc.d/entropy script runs (after random_seed and rndctl) to
  check for entropy at boot -- in rc.conf, you can:

  . set `entropy=check' to halt multiuser boot and enter single-user
    mode if not enough entropy

  . set `entropy=wait' to make multiuser boot wait until enough entropy

  Default is to always boot without waiting -- and rely on other
  channels like security report to alert the operator if there's a
  problem.

- New man page entropy(7) discussing the higher-level concepts and
  system integration with cross-references.

- New paragraph in afterboot(8) about entropy citing entropy(7) for
  more details.

This change addresses many of the issues discussed in security/55659.
This is a first draft; happy to take improvements to the man pages and
scripted messages to improve clarity.

I considered changing motd to include an entropy warning with a
reference to the entropy(7) man page, but it's a little trickier:
- Not sure it's appropriate for all users to see at login rather than
  users who have power to affect the entropy estimate (maybe it is,
  just haven't decided).
- We only have a mechanism for changing once at boot; the message would
  remain until next boot even if an operator adds enough entropy.
- The mechanism isn't really conducive to making a message appear
  conditionally from boot to boot.
2021-01-10 23:24:25 +00:00
msaitoh 811d5a8b03 s/parition/partition/ 2020-09-29 02:49:55 +00:00
kim 6f0846e992 Add optional release info in /etc/motd
My personal preferencese for /etc/rc.conf:

    update_motd_release=YES
    motd_release_tag='Binaries: '

This provides an explanation to users about the second version in motd.
2020-09-11 09:59:35 +00:00
gutteridge d4757d5dbf Fix minor typo, it's npf(7), not npf(4) 2020-08-09 23:43:58 +00:00
christos 2f0bfbf344 Rename blacklist -> blocklist 2020-06-15 01:57:29 +00:00
christos 252a722447 Add support for npfd_flags 2020-06-05 17:10:44 +00:00
roy cfd6163780 dhcpcd: Empty the chroot
While here, set correct optional hooks.
2020-05-31 12:58:09 +00:00
jmcneill 04415e5e6a Set resize_gpt=NO by default 2020-05-24 14:46:19 +00:00
roy e9f01a9072 Add a default dhcpcd_chrootdir 2020-04-02 13:02:05 +00:00
roy 01184df4dd Enable hostapd syslog support by default. 2020-02-03 09:12:53 +00:00
riastradh c91905c4be Save the entropy seed daily in /etc/security. 2019-12-06 14:43:29 +00:00
brad 12ea0a140d Add support for legacy ZFS filesystems, specified by mountpoint=legacy
in the ZFS properties of the dataset and a simple man page for
mount_zfs.  With this, it is possible to put ZFS filesystems in
/etc/fstab as file system type zfs.

Add a rc.d script that kicks the module ZFS load mostly before
mountall runs simular to what LVM does.  This allows for any legacy
mounts to be specified in critical_local_filesystems and allows for
ZFS pools on top of cgd (probably among other things).  Introduce a
rc.conf variable called zfs which needs to be set to YES, in the usual
manor of things, to get zvols and ZFS dataset support rather then just
assume that 'zfs mount' does that in mountall.  Fix a problem in
mountall if ZFS is not compiled into the system.
2019-09-15 19:38:08 +00:00
msaitoh 532016140e Fix typo in comment (s/partion/partition/). 2019-07-24 02:37:17 +00:00
kre 6aaf09f01b revert previous. somehowI failedto see that was already done. 2019-05-12 01:45:25 +00:00
kre 1aa98bd080 install rc.d 2019-05-12 01:33:47 +00:00
maxv 907a706c0b Add smtoff, an rc.d script that disables Simultaneous Multi-Threading. It
parses the output of cpuctl, and executes "cpuctl offline" for each CPU
that has SmtID!=0.

The default is "smtoff=NO", which means that SMT remains enabled.
2019-05-11 19:31:03 +00:00
sevan 967446d222 Include npf_boot rc.d scripts which loads an interim config early in boot.
By default /etc/default/npf.boot.conf which can be overriden by /etc/npf.boot.conf.
2019-04-10 00:32:15 +00:00
sevan 10a9937f89 Allow DHCP
Neighbour Advertisement should be allowed both ways, otherwise
ipv6nd_sendadvertisement() from dhcpcd logs "Network is unreachable"
2019-04-07 02:08:08 +00:00
sevan 14689fed34 Add an initial ruleset and rc script for NPF to protect host during early stage
of boot, similar to what is currently available for PF.
2019-04-02 01:50:32 +00:00
roy 08c8b11310 Setup default wpa_supplicant flags so that it:
* Writes diagnostics to syslog
  * Enables interface matching to hotplug wireless interfaces
  * Uses /etc/wpa_supplicant.conf
2019-01-12 17:38:36 +00:00
martin a52a4fdc24 Apply patch from Ian D. Leroux in PR bin/51019:
when unmounting tmpfs file systems at shutdown time, avoid unmounting
a tmpfs created by init on /dev - behaviour overridable from rc.conf.
By default all tmpfs that have device nodes are not mounted.
2018-10-19 14:11:12 +00:00
maxv 6049b090a1 Remove the userland part of ISDN. The kernel part is untouched for now.
ipppctl was actually an exact copy of pppoectl; there is no functional
change in pppoectl in this commit.
2018-09-23 07:24:19 +00:00
roy b729dec75a Remove dhclient from the base system.
Discussed here:
https://mail-index.netbsd.org/tech-userlevel/2018/06/21/msg011233.html
2018-06-29 12:34:13 +00:00
uwe 2a24bb8653 Provide resize_disklabel=NO default. Used by arm images and is not
part of the stock rc.d yet.  This silences rc when you delete the
whole resize_* block from rc.conf after the first boot.
2018-05-25 20:48:54 +00:00
martin ac1539438e Cosmetics: default to dmesg -t when writing /var/run/dmesg.boot -
the timestamps at boot time are mostly useless.
2018-04-18 04:27:47 +00:00
christos b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00
is d9123c9e75 Add startup file for dhcp v6 with builtin isc-dhcp. Alas, this needs to
be a seperate process. On the positive side: this can't break the dhcpd
for IPv4 when tested.
2017-12-29 18:15:48 +00:00
christos 09e56bb693 add nsd 2017-01-07 19:55:35 +00:00
christos 71cba524e4 add scripts for npfd 2017-01-05 14:39:09 +00:00
christos c90b9921a5 unbound additions 2016-08-20 11:21:50 +00:00
roy d0367588d0 Instead of waiting for a duration based in IPv6 DAD count sysctl,
wait for 15 seconds for tentative flags to clear allowing 5 seconds
for detached flags to clear as well from configured addresses.

This is now protocol independant and allows time for the interfaces to
work out if they have a carrier or not.
2016-01-07 11:51:07 +00:00
plunky d86700ce1a "ip6addrctl_enable" is now "ip6addrctl", set the default appropriately 2015-12-26 21:05:11 +00:00
christos 4f497f781b Add defaults for ip6addrctl 2015-12-13 02:27:06 +00:00
chopps 94dff34741 Add resize_root boot operation. If resize_root=YES in rc.conf then
the system attempts to resize the root file system to fill it's
partition prior to mounting read-write. Useful for things like AMI
file system images. May eventually be used by arm images after
coming up with similar solution for increasing the parition size.
2015-03-30 10:58:37 +00:00
jmcneill 7ba4328bfa Process /etc/modules.conf (if present) at startup, before securelevel is
raised, to allow module loading on ports without a module aware bootloader.
2015-03-21 19:10:43 +00:00
christos bef8765f0a there is no more makewhatis 2015-03-04 14:54:38 +00:00
joerg 88c9fb0be8 Add rc script for /sbin/iscsid. 2015-02-21 23:13:00 +00:00
christos 3e734a9422 add blacklistd 2015-01-25 16:26:34 +00:00
jmcneill f1c95757e8 It doesn't make sense to start wpa_supplicant from an rc.d script without
the -B flag, so always prepend it to $rc_flags.
2015-01-22 19:50:21 +00:00
tron a0fbec155b Revert last change. This was already fixed differently and something
went wrong with the change anyway. Sorry
2014-09-26 11:04:06 +00:00
tron 4c439aa401 Re-add default for "rtsol". "/etc/rc.d/network" still checks for this
setting and complains if it isn't defined at all. Add a comment that
it is deprecated and suggest to use "dhcpcd=YES" instead.
2014-09-26 10:36:11 +00:00
roy d784a83a57 rtsol has gone. 2014-09-13 11:07:08 +00:00
roy cb2e7b1a58 Add the -M flag to dhcpcd so it stays in master mode even for one
interface. Suggested by apb@
2014-09-13 11:06:42 +00:00