RHCE experiment: xinetd-Based Access Control in Linux

Source: Internet
Author: User


Requirements: configure the telnet server and use xinetd to implement the following access control functions

1. the maximum number of connections to the telnet server is 20.

2. If the number of telnet requests per second reaches 4, the service will automatically stop for 1 minute.

3. Only hosts from the trust.com domain and can access your telnet server.

4. Deny access to your telnet server from hosts and bad.trust.com

5. Allow the above clients to access the telnet server from PM to PM

6. Each client can have up to two telnet connections to the server at the same time.

Lab environment:

1. Windows XP host, IP =

2. Redhat Linux5 Vm, IP =

[Root @ localhost ~] # Cat/etc/hosts localhost. localdomain localhost ns.trust.com ns bad.trust.com bad


[Root @ localhost ~] # Vi/etc/xinetd. d/telnet

Instances = 20

Cps = 4 60

Only_from = .trust.com

No_access = bad.trust.com

Access_times = --

Per_source = 2

[Root @ localhost ~] # Service xinetd restart

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.