보안 4

WebtoB 4 Reverse Proxy 리버스 프록시

https://lawmin.tistory.com/rp/ 접속시,해당 서버에 localhost로 띄워진 http://127.0.0.1/rp/ 서비스로 연결시켜주는,리버스 프록시 설정 예시입니다. JDK, Tomcat 등의 버전 문제로 TLS 1.2, 1.3 지원 불가 등,https가 불가한 레거시 서비스에 대한 https 설정 등 주로 보안을 위해 사용합니다. *VHOST host_rp HostName = "lawmin.tistory.com", Port = "443", SSLFLAG = Y, SSLNAME = "SSL1", LOGGING = "rp_log1", ERRORLOG = "rp_log2" *SSL SSL1 CertificateFile ..

WAS 2025.05.15

[JEUS 6] 관리자 계정명 및 비밀번호 변경, 프로세스 노출 방지

1. WASID(변경할관리자ID), WASPW(변경할관리자비밀번호) 를 정하여 아래 스크립트 실행합니다.(아래는 wasadmin/nimdasaw로 설정 예시)WASID=wasadminWASPW=nimdasawWASPWENC=`encryption aes $WASPW | head -n 1 | awk -F'[][]' '{print substr($4, 8)}' | awk '{print substr($0, 1, length($0)-1)}'`echo "AES" > $JEUS_HOME/bin/jeusEncodeecho $WASID >> $JEUS_HOME/bin/jeusEncodeecho $WASPWENC >> $JEUS_HOME/bin/jeusEncodechmod 640 $JEUS_HOME/bin/jeusEncod..

WAS 2025.01.10

CentOS 7 보안 취약점 기본 조치

#1. pwquality 점검 mv /etc/security/pwquality.conf /etc/security/pwquality_old.conf echo -e "minlen = 8\ndcredit = -1\nucredit = -1\nlcredit = -1\nocredit = -1\n" | cat - /etc/security/pwquality_old.conf > /etc/security/pwquality.conf rm -f /etc/security/pwquality_old.conf #2. 계정 잠금 설정 centos 7 sed -i '/auth\s\+required\s\+pam_env.so/a auth        required      pam_faillock.so preauth silent audit..

OS/CentOS&Rocky 2024.11.14

CentOS/Rocky 8 보안 취약점 기본 조치 스크립트

#1. pwquality 점검 mv /etc/security/pwquality.conf /etc/security/pwquality_old.conf echo -e "minlen = 8\ndcredit = -1\nucredit = -1\nlcredit = -1\nocredit = -1\n" | cat - /etc/security/pwquality_old.conf > /etc/security/pwquality.conf rm /etc/security/pwquality_old.conf #2. faillock 설정 (10번 이상 로그인 실패시 10분간 차단)authselect select sssd --force authselect enable-feature with-faillock sed -i "/# deny = ..

OS/CentOS&Rocky 2024.11.13