restarting the
portmap
service.
Widely used services, such as NIS and NFS, depend on
portmap
to operate, so be aware of
these limitations.
2.1.4. Operators
At present, access control rules accept one operator,
EXCEPT
. It can be used in both the
daemon list and the client list of a rule.
The
EXCEPT
operator allows specific exceptions to broader matches within the same rule.
In the following example from a
hosts.allow
file, all
example.com
hosts are allowed to connect
to all services except
cracker.example.com
:
ALL: .example.com EXCEPT cracker.example.com
In the another example from a
hosts.allow
file, clients from the 192.168.0.
x
network can use
all services except for FTP:
ALL EXCEPT vsftpd: 192.168.0.
Note
Organizationally, it is often easier to avoid using
EXCEPT
operators. This allows
other administrators to quickly scan the appropriate files to see what hosts are
allowed or denied access to services, without having to sort through
EXCEPT
operators.
2.2. Option Fields
In addition to basic rules allowing and denying access, the Red Hat Enterprise Linux
implementation of TCP wrappers supports extensions to the access control language through
option fields. By using option fields within hosts access rules, administrators can accomplish a
variety of tasks such as altering log behavior, consolidating access control, and launching shell
commands.
2.2.1. Logging
Option fields let administrators easily change the log facility and priority level for a rule by using
the
severity
directive.
In the following example, connections to the SSH daemon from any host in the
example.com
domain are logged to the default
authprivsyslog
facility (because no facility value is specified)
with a priority of
emerg
:
Option Fields
315
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......