티스토리 뷰
$ yum -y install xinetd.x86_64
root@PSDEV:/etc] cat xinetd.conf
#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.
defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
# enabled =
# disabled =
# Define general logging characteristics.
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT
# Define access restriction defaults
#
# no_access =
# only_from =
# max_load = 0
cps = 50 10
instances = 50
per_source = 10
# Address and networking defaults
#
# bind =
# mdns = yes
v6only = no
# setup environmental attributes
#
# passenv =
groups = yes
umask = 002
# Generally, banners are not used. This sets up their global defaults
#
# banner =
# banner_fail =
# banner_success =
}
includedir /etc/xinetd.d
#예제
다음은 telnet 서버의 설정의 일부이다. 아래의 조건에 맞게 ( 괄호 ) 안에 알맞은 내용을
적으시오.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
( ① ) = no
( ② ) = 5
( ③ ) = 08:00-20:00
( ④ ) = 7
( ⑤ ) = 10.20.16.0/24
log_type = ( ⑥ )
server = /usr/sbin/in.telnetd
■ 조 건
- 다중 스레드로 동작하여 새로운 서비스 요청을 받아들일 수 있다
- 서버의 우선순위를 5로 지정한다.
- 텔넷 서버의 접속은 오전 8시부터 오후 8시까지만 가능하게 설정한다.
- 동일한 IP 주소에서의 접속은 7개로 제한한다.
- IP 주소가 10.20.16.0/24 인 네트워크 대역을 사용하는 호스트는 접속을 거부한다.
- 로그는 /var/log/telnetd.log 파일에 별도로 저장한다.
① wait ② nice ③ access_times ④ per_source ⑤ no_access ⑥ FILE /var/log/telnetd.log |
찍어서 풀지말고 확실하게 알고 풀자!
영어공부를 어디서부터 시작해야 할지 모른다면?
지금 바로 해커스에서 무료로 내 영어실력 확인하기
▽▽▽▽▽▽ 바로가기
해커스인강 기초영어 레벨테스트
nefing.com
※ 해당 광고클릭은 필자에게 경제적으로 큰 도움이 됩니다.
'IT > 리눅스 마스터 1급' 카테고리의 다른 글
리눅스 usb 인식 여부 확인 / 장치 파일명 확인 (0) | 2021.11.21 |
---|---|
nis 관련 명령어 정리 ( 왜 yp 로 시작하는걸까?) (0) | 2021.11.20 |
리눅스:: squid 설치/설정 (예시문제) (0) | 2021.11.13 |
아파치 접근 제어 (Apache httpd.conf 보안 설정) (0) | 2021.11.07 |
[리눅스] chmod 특수권한 설정 (간단정리/ setuid, setgid, sticky bit) (0) | 2021.10.29 |
댓글