# yum -y install fail2ban fail2ban-systemd # systemctl enable fail2ban # chkconfig fail2ban on # systemctl start fail2ban # systemctl status fail2ban 기본룰 복사# cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local # vi /etc/fail2ban/jail.local 10분간 차단 bantime = 10m 5번 실패시 차단 maxretry = 5 차단해제# fail2ban-client set vsftpd unbanip 1xx.1xx.2xx.2xx 상태확인# fail2ban-client status vsftpd Status for the jail:..
1. 쓰기 테스트 # dd if=/dev/zero of=testfile count=1000 bs=1024k(1기가) 2. 읽기 테스트 # dd if=testfile of=/dev/zero bs=1024k
웹브라우저에서 아래 링크로 확인가능https://api.telegram.org/bot[botID]/getUpdates
ssh설정폴더에 /etc/ssh/sshrc 파일생성 후 아래와 같이 작성 (실행권한 주세요~ chmod +x sshrc) #!/bin/bash DESTINATION="텔래그램 채널(대화방) ID" BOTID="텔레그램 봇 ID 입력" remoteip=`w | grep $USER | awk '{print $3}'` HOSTNAME_S=`hostname -s` conntime=$(date +"%Y-%m-%d %H:%M:%S") msg=`echo -e "접속서버 : " $HOSTNAME_S " \n접속IP : " $remoteip "\n접속시간 : "$conntime "\n"$USER"계정이 접속되었습니다!!"` curl -s \ --request POST https://api.telegram.org/bot{..
XFS쿼터설정 [root@nfs DATA]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Wed Nov 13 10:16:43 2019 # # Accessible filesystems, by reference, are maintained under '/dev/disk/'. # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info. # # After editing this file, run 'systemctl daemon-reload' to update systemd # units generated from this file. # /dev/mapper/cl_nfs-root / ..