Editor's note: Wrapper and xinetd are a way to implement access restrictions on Linux. We have introduced its basic principles and installation and compilation methods in previous articles. Friends who have not seen it can take a look. We want to explain its configuration carefully to you today. In the article that follows, we will also talk about some examples in detail to facilitate everyone's understanding and mastery.
Reminder: In order to ensure the integrity of the attribute table, the second page is relatively long and you may spend more time to download it. Please forgive me.
1. Configuration method The relevant configuration files are as follows: /etc/ /etc//* /etc/ /etc/ The default configuration file for xinetd is /etc/. Its syntax is completely different from /etc/ and is incompatible. It is essentially a combination of /etc/ and /etc/, /etc/ functions. Each item in /etc/ has the following form: service service-name { attribute operator value . . . . . . } The service is a required keyword, and the attribute table must be enclosed in braces. Each item defines a service defined by service-name. Service-name is arbitrary, but is usually a standard network service name, and other non-standard services can also be added as long as they can be activated through network requests, including network requests issued by localhost itself. Each service has many attributes that can be used, which are explained in detail in the following table. The required attributes and usage rules for attributes will be described later. The operator can be =, +=, or -=. All attributes can be used with =, which is used to assign one or more values. Some attributes can be used in the form of += or -=, which is used to increase their value to an existing value table, or delete their value from the existing value table. Value is the value set for a given property. It should be noted that each service can be appended to /etc/ or created separate files in the directory specified in /etc/. RedHat recommends the latter approach, because this is very scalable and is more convenient to manage. The default service configuration file directory of RedHat is /etc/ .