RHCE experiment: xinetd-Based Access Control

Source: Internet
Author: User
RHCE experiment: xinetd-Based Access Control-Linux Enterprise Application-Linux server application information. See the following for details. Course Background: RH253

Requirement: 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 192.168.0.0/24 can access your telnet server.
4. Deny access to your telnet server from hosts 192.168.0.100 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 = 192.168.0.2
2. Redhat Linux5 Vm, IP = 192.168.0.1
[Root @ localhost ~] # Cat/etc/hosts
127.0.0.1 localhost. localdomain localhost
192.168.0.1 ns.trust.com ns
192.168.0.2 bad.trust.com bad

Solution:
[Root @ localhost ~] # Vi/etc/xinetd. d/telnet
Instances = 20
Cps = 4 60
Only_from = 192.168.0.0/24 .trust.com
No_access = 192.168.0.1 bad.trust.com
Access_times = --
Per_source = 2

[Root @ localhost ~] # Service xinetd restart

Advanced testing:
Modify the preceding configuration parameters and log on to Windows XP (IP address and time modified) and Linux host respectively.
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.