리눅스/OS 설정

[LINUX]Telnet session 값 변경 (MaxConnections)

ㅎㄷㄹㅁㅇ 2023. 11. 20. 13:51
반응형

Telnet Max session 설정

목차

    리눅스 7버전 이상의 변경 방법

    • Telnet 설정의 경우 OS 7 버전부터 xinetd 설정 이외에 systemd 설정에서 Max connections 설정을 진행한다.telnet 설치
    # yum install telnet-server Rocky8.7_BaseOS                                                                                                                                             621 kB/s | 3.9 kB     00:00     Rocky8.7_AppStream                                                                                                                                          583 kB/s | 4.3 kB     00:00     Dependencies resolved. ============================================================================================================================================================================================  Package                                      Architecture                          Version                                         Repository                                         Size ============================================================================================================================================================================================ Installing:  telnet-server                                x86_64                                1:0.17-76.el8                                   Rocky8.7_AppStream                                 47 k  Transaction Summary ============================================================================================================================================================================================ Install  1 Package  Total size: 47 k Installed size: 57 k Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction   Preparing        :                                                                                                                                                                    1/1    Installing       : telnet-server-1:0.17-76.el8.x86_64                                                                                                                                 1/1    Running scriptlet: telnet-server-1:0.17-76.el8.x86_64                                                                                                                                 1/1    Verifying        : telnet-server-1:0.17-76.el8.x86_64                                                                                                                                 1/1   Installed:   telnet-server-1:0.17-76.el8.x86_64                                                                                                                                                          Complete!  # yum install telnet Last metadata expiration check: 0:00:47 ago on Thu 26 Oct 2023 10:14:23 AM KST. Dependencies resolved. ============================================================================================================================================================================================  Package                                 Architecture                            Version                                          Repository                                           Size ============================================================================================================================================================================================ Installing:  telnet                                  x86_64                                  1:0.17-76.el8                                    Rocky8.7_AppStream                                   71 k  Transaction Summary ============================================================================================================================================================================================ Install  1 Package  Total size: 71 k Installed size: 119 k Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction   Preparing        :                                                                                                                                                                    1/1    Installing       : telnet-1:0.17-76.el8.x86_64                                                                                                                                        1/1    Running scriptlet: telnet-1:0.17-76.el8.x86_64                                                                                                                                        1/1    Verifying        : telnet-1:0.17-76.el8.x86_64                                                                                                                                        1/1   Installed:   telnet-1:0.17-76.el8.x86_64                                                                                                                                                                 Complete!  

    telnet 설치 정보 및 설정 정보 확인

    # rpm -qa | grep telnet telnet-server-0.17-76.el8.x86_64 telnet-0.17-76.el8.x86_64  # cat /etc/systemd/system/telnet.socket.d/MaxCon.conf  [Socket] MaxConnections=240   # systemctl status telnet.socket  ● telnet.socket - Telnet Server Activation Socket    Loaded: loaded (/usr/lib/systemd/system/telnet.socket; enabled; vendor preset: disabled)   Drop-In: /etc/systemd/system/telnet.socket.d            └─MaxCon.conf    Active: active (listening) since Thu 2023-10-26 10:14:50 KST; 21min ago      Docs: man:telnetd(8)    Listen: [::]:23 (Stream)  Accepted: 1; Connected: 0;     Tasks: 0 (limit: 216268)    Memory: 0B    CGroup: /system.slice/telnet.socket  Oct 26 10:14:50 TEST-SERVER systemd[1]: Listening on Telnet Server Activation Socket.  

    telnet 설정 정보 변경 및 확인

    ### /usr/lib/systemd/system/telnet.socket [Unit] Description=Telnet Server Activation Socket Documentation=man:telnetd(8)  [Socket] ListenStream=23 Accept=true  [Install] WantedBy=sockets.target  ### /etc/systemd/system/telnet.socket.d/MaxCon.conf [Socket] MaxConnections=240  # systemctl restart telnet.socket  # systemctl status telnet.socket    # systemctl cat telnet.socket   ### /usr/lib/systemd/system/telnet.socket [Unit] Description=Telnet Server Activation Socket Documentation=man:telnetd(8)  [Socket] ListenStream=23 Accept=true  [Install] WantedBy=sockets.target  ### /etc/systemd/system/telnet.socket.d/MaxCon.conf [Socket] MaxConnections=240 

    연관 tag : #telnet #MaxConnetions
    연관 문서 :

    반응형
    TOP