|
Lines 219-225
Additional options are available. Refer to man:inetd[8] for the full list of opt
Link Here
|
| 219 |
|
219 |
|
| 220 |
Many of the daemons which can be managed by inetd are not security-conscious. Some daemons, such as fingerd, can provide information that may be useful to an attacker. Only enable the services which are needed and monitor the system for excessive connection attempts. `max-connections-per-ip-per-minute`, `max-child` and `max-child-per-ip` can be used to limit such attacks. |
220 |
Many of the daemons which can be managed by inetd are not security-conscious. Some daemons, such as fingerd, can provide information that may be useful to an attacker. Only enable the services which are needed and monitor the system for excessive connection attempts. `max-connections-per-ip-per-minute`, `max-child` and `max-child-per-ip` can be used to limit such attacks. |
| 221 |
|
221 |
|
| 222 |
By default, TCP wrappers is enabled. Consult man:hosts_access[5] for more information on placing TCP restrictions on various inetd invoked daemons. |
222 |
By default, TCP wrappers are enabled. Consult man:hosts_access[5] for more information on placing TCP restrictions on various inetd invoked daemons. |
| 223 |
|
223 |
|
| 224 |
[[network-nfs]] |
224 |
[[network-nfs]] |
| 225 |
== Network File System (NFS) |
225 |
== Network File System (NFS) |
|
Lines 403-413
If locking is not required on the server, the NFS client can be configured to lo
Link Here
|
| 403 |
The man:autofs[5] automount facility is supported starting with FreeBSD 10.1-RELEASE. To use the automounter functionality in older versions of FreeBSD, use man:amd[8] instead. This chapter only describes the man:autofs[5] automounter. |
403 |
The man:autofs[5] automount facility is supported starting with FreeBSD 10.1-RELEASE. To use the automounter functionality in older versions of FreeBSD, use man:amd[8] instead. This chapter only describes the man:autofs[5] automounter. |
| 404 |
==== |
404 |
==== |
| 405 |
|
405 |
|
| 406 |
The man:autofs[5] facility is a common name for several components that, together, allow for automatic mounting of remote and local filesystems whenever a file or directory within that file system is accessed. It consists of the kernel component, man:autofs[5], and several userspace applications: man:automount[8], man:automountd[8] and man:autounmountd[8]. It serves as an alternative for man:amd[8] from previous FreeBSD releases. Amd is still provided for backward compatibility purposes, as the two use different map format; the one used by autofs is the same as with other SVR4 automounters, such as the ones in Solaris, MacOS X, and Linux. |
406 |
The man:autofs[5] facility is a common name for several components that, together, allow for automatic mounting of remote and local filesystems whenever a file or directory within that file system is accessed. It consists of the kernel component, man:autofs[5], and several userspace applications: man:automount[8], man:automountd[8] and man:autounmountd[8]. It serves as an alternative for man:amd[8] from previous FreeBSD releases. amd is still provided for backward compatibility purposes, as the two use different map formats; the one used by autofs is the same as with other SVR4 automounters, such as the ones in Solaris, MacOS X, and Linux. |
| 407 |
|
407 |
|
| 408 |
The man:autofs[5] virtual filesystem is mounted on specified mountpoints by man:automount[8], usually invoked during boot. |
408 |
The man:autofs[5] virtual filesystem is mounted on specified mountpoints by man:automount[8], usually invoked during boot. |
| 409 |
|
409 |
|
| 410 |
Whenever a process attempts to access file within the man:autofs[5] mountpoint, the kernel will notify man:automountd[8] daemon and pause the triggering process. The man:automountd[8] daemon will handle kernel requests by finding the proper map and mounting the filesystem according to it, then signal the kernel to release blocked process. The man:autounmountd[8] daemon automatically unmounts automounted filesystems after some time, unless they are still being used. |
410 |
Whenever a process attempts to access a file within the man:autofs[5] mountpoint, the kernel will notify man:automountd[8] daemon and pause the triggering process. The man:automountd[8] daemon will handle kernel requests by finding the proper map and mounting the filesystem according to it, then signal the kernel to release blocked process. The man:autounmountd[8] daemon automatically unmounts automounted filesystems after some time, unless they are still being used. |
| 411 |
|
411 |
|
| 412 |
The primary autofs configuration file is [.filename]#/etc/auto_master#. It assigns individual maps to top-level mounts. For an explanation of [.filename]#auto_master# and the map syntax, refer to man:auto_master[5]. |
412 |
The primary autofs configuration file is [.filename]#/etc/auto_master#. It assigns individual maps to top-level mounts. For an explanation of [.filename]#auto_master# and the map syntax, refer to man:auto_master[5]. |
| 413 |
|
413 |
|
|
Lines 1678-1690
Any existing nameservers in [.filename]#/etc/resolv.conf# will be configured as
Link Here
|
| 1678 |
[NOTE] |
1678 |
[NOTE] |
| 1679 |
==== |
1679 |
==== |
| 1680 |
If any of the listed nameservers do not support DNSSEC, local DNS resolution will fail. Be sure to test each nameserver and remove any that fail the test. The following command will show the trust tree or a failure for a nameserver running on `192.168.1.1`: |
1680 |
If any of the listed nameservers do not support DNSSEC, local DNS resolution will fail. Be sure to test each nameserver and remove any that fail the test. The following command will show the trust tree or a failure for a nameserver running on `192.168.1.1`: |
| 1681 |
==== |
|
|
| 1682 |
|
| 1683 |
|
1681 |
|
| 1684 |
[source,bash] |
1682 |
[source,bash] |
| 1685 |
.... |
1683 |
.... |
| 1686 |
% drill -S FreeBSD.org @192.168.1.1 |
1684 |
% drill -S FreeBSD.org @192.168.1.1 |
| 1687 |
.... |
1685 |
.... |
|
|
1686 |
==== |
| 1688 |
|
1687 |
|
| 1689 |
Once each nameserver is confirmed to support DNSSEC, start Unbound: |
1688 |
Once each nameserver is confirmed to support DNSSEC, start Unbound: |
| 1690 |
|
1689 |
|
|
Lines 2199-2211
This section describes how to configure ntpd on FreeBSD. Further documentation c
Link Here
|
| 2199 |
|
2198 |
|
| 2200 |
=== NTP Configuration |
2199 |
=== NTP Configuration |
| 2201 |
|
2200 |
|
| 2202 |
On FreeBSD, the built-in ntpd can be used to synchronize a system's clock. Ntpd is configured using man:rc.conf[5] variables and [.filename]#/etc/ntp.conf#, as detailed in the following sections. |
2201 |
On FreeBSD, the built-in ntpd can be used to synchronize a system's clock. ntpd is configured using man:rc.conf[5] variables and [.filename]#/etc/ntp.conf#, as detailed in the following sections. |
| 2203 |
|
2202 |
|
| 2204 |
Ntpd communicates with its network peers using UDP packets. Any firewalls between your machine and its NTP peers must be configured to allow UDP packets in and out on port 123. |
2203 |
ntpd communicates with its network peers using UDP packets. Any firewalls between your machine and its NTP peers must be configured to allow UDP packets in and out on port 123. |
| 2205 |
|
2204 |
|
| 2206 |
==== The [.filename]#/etc/ntp.conf# file |
2205 |
==== The [.filename]#/etc/ntp.conf# file |
| 2207 |
|
2206 |
|
| 2208 |
Ntpd reads [.filename]#/etc/ntp.conf# to determine which NTP servers to query. Choosing several NTP servers is recommended in case one of the servers becomes unreachable or its clock proves unreliable. As ntpd receives responses, it favors reliable servers over the less reliable ones. The servers which are queried can be local to the network, provided by an ISP, or selected from an http://support.ntp.org/bin/view/Servers/WebHome[ online list of publicly accessible NTP servers]. When choosing a public NTP server, select one that is geographically close and review its usage policy. The `pool` configuration keyword selects one or more servers from a pool of servers. An http://support.ntp.org/bin/view/Servers/NTPPoolServers[ online list of publicly accessible NTP pools] is available, organized by geographic area. In addition, FreeBSD provides a project-sponsored pool, `0.freebsd.pool.ntp.org`. |
2207 |
ntpd reads [.filename]#/etc/ntp.conf# to determine which NTP servers to query. Choosing several NTP servers is recommended in case one of the servers becomes unreachable or its clock proves unreliable. As ntpd receives responses, it favors reliable servers over the less reliable ones. The servers which are queried can be local to the network, provided by an ISP, or selected from an http://support.ntp.org/bin/view/Servers/WebHome[ online list of publicly accessible NTP servers]. When choosing a public NTP server, select one that is geographically close and review its usage policy. The `pool` configuration keyword selects one or more servers from a pool of servers. An http://support.ntp.org/bin/view/Servers/NTPPoolServers[ online list of publicly accessible NTP pools] is available, organized by geographic area. In addition, FreeBSD provides a project-sponsored pool, `0.freebsd.pool.ntp.org`. |
| 2209 |
|
2208 |
|
| 2210 |
.Sample [.filename]#/etc/ntp.conf# |
2209 |
.Sample [.filename]#/etc/ntp.conf# |
| 2211 |
[example] |
2210 |
[example] |
|
Lines 2241-2247
The format of this file is described in man:ntp.conf[5]. The descriptions below
Link Here
|
| 2241 |
|
2240 |
|
| 2242 |
By default, an NTP server is accessible to any network host. The `restrict` keyword controls which systems can access the server. Multiple `restrict` entries are supported, each one refining the restrictions given in previous statements. The values shown in the example grant the local system full query and control access, while allowing remote systems only the ability to query the time. For more details, refer to the `Access Control Support` subsection of man:ntp.conf[5]. |
2241 |
By default, an NTP server is accessible to any network host. The `restrict` keyword controls which systems can access the server. Multiple `restrict` entries are supported, each one refining the restrictions given in previous statements. The values shown in the example grant the local system full query and control access, while allowing remote systems only the ability to query the time. For more details, refer to the `Access Control Support` subsection of man:ntp.conf[5]. |
| 2243 |
|
2242 |
|
| 2244 |
The `server` keyword specifies a single server to query. The file can contain multiple server keywords, with one server listed on each line. The `pool` keyword specifies a pool of servers. Ntpd will add one or more servers from this pool as needed to reach the number of peers specified using the `tos minclock` value. The `iburst` keyword directs ntpd to perform a burst of eight quick packet exchanges with a server when contact is first established, to help quickly synchronize system time. |
2243 |
The `server` keyword specifies a single server to query. The file can contain multiple server keywords, with one server listed on each line. The `pool` keyword specifies a pool of servers. ntpd will add one or more servers from this pool as needed to reach the number of peers specified using the `tos minclock` value. The `iburst` keyword directs ntpd to perform a burst of eight quick packet exchanges with a server when contact is first established, to help quickly synchronize system time. |
| 2245 |
|
2244 |
|
| 2246 |
The `leapfile` keyword specifies the location of a file containing information about leap seconds. The file is updated automatically by man:periodic[8]. The file location specified by this keyword must match the location set in the `ntp_db_leapfile` variable in [.filename]#/etc/rc.conf#. |
2245 |
The `leapfile` keyword specifies the location of a file containing information about leap seconds. The file is updated automatically by man:periodic[8]. The file location specified by this keyword must match the location set in the `ntp_db_leapfile` variable in [.filename]#/etc/rc.conf#. |
| 2247 |
|
2246 |
|
|
Lines 2268-2276
Set `ntpd_flags=` to contain any other ntpd flags as needed, but avoid using the
Link Here
|
| 2268 |
* `-c` (set `ntpd_config=` instead) |
2267 |
* `-c` (set `ntpd_config=` instead) |
| 2269 |
|
2268 |
|
| 2270 |
|
2269 |
|
| 2271 |
==== Ntpd and the unpriveleged `ntpd` user |
2270 |
==== ntpd and the unpriveleged `ntpd` user |
| 2272 |
|
2271 |
|
| 2273 |
Ntpd on FreeBSD can start and run as an unpriveleged user. Doing so requires the man:mac_ntpd[4] policy module. The [.filename]#/etc/rc.d/ntpd# startup script first examines the NTP configuration. If possible, it loads the `mac_ntpd` module, then starts ntpd as unpriveleged user `ntpd` (user id 123). To avoid problems with file and directory access, the startup script will not automatically start ntpd as `ntpd` when the configuration contains any file-related options. |
2272 |
ntpd on FreeBSD can start and run as an unpriveleged user. Doing so requires the man:mac_ntpd[4] policy module. The [.filename]#/etc/rc.d/ntpd# startup script first examines the NTP configuration. If possible, it loads the `mac_ntpd` module, then starts ntpd as unpriveleged user `ntpd` (user id 123). To avoid problems with file and directory access, the startup script will not automatically start ntpd as `ntpd` when the configuration contains any file-related options. |
| 2274 |
|
2273 |
|
| 2275 |
The presence of any of the following in `ntpd_flags` requires manual configuration as described below to run as the `ntpd` user: |
2274 |
The presence of any of the following in `ntpd_flags` requires manual configuration as described below to run as the `ntpd` user: |
| 2276 |
|
2275 |
|