본문 바로가기

분류 전체보기226

telnet을 통한 RDS 접속 확인 1. nc -zv를 통한 통신 테스트 nc -zv DB-instance-endpoint port 성공사례 nc -zv postgresql1.c6c8mn7fake0.us-west-2.rds.amazonaws.com 8299 Connection to postgresql1.c6c8mn7fake0.us-west-2.rds.amazonaws.com 8299 port [tcp/vvr-data] succeeded! 실패사례 nc -zv postgresql1.c6c8mn7fake0.us-west-2.rds.amazonaws.com 8299 connection to the host, on port 8229: Connect failed 2. 텔렛을 통한 통신 테스트 telnet DB-instance-endpoint por.. 2023. 6. 28.
[nginx] HTTP를 HTTPS로 리다이렉션 server { listen 80; server_name www.domain.com; return 301 https://www.domain.com$request_uri; } 참고 https://nginxstore.com/blog/nginx/nginx-rewrite-%EA%B7%9C%EC%B9%99-%EB%A7%8C%EB%93%A4%EA%B8%B0/ 2023. 6. 28.
QR코드로 시크릿키 찾아내기 활용도 OTP를 위해 등록해놓은 정보를 다른 시크릿 툴로 넘길 때 유용합니다. GitHub - scito/extract_otp_secrets: Extract one time password (OTP) secrets from QR codes exported by two-factor authentication Extract one time password (OTP) secrets from QR codes exported by two-factor authentication (2FA) apps such as "Google Authenticator". The exported QR codes from authentication apps can b... github.com 2023. 6. 28.
EBS 볼륨 마운트 1. 파일 시스템 용량 확인 df -h 2. 연결된 디스크 목록 확인 lsblk 3. 파티션 생성 command -> n -> p -> p -> w fdisk /dev/xvd 4. 포맷 mkfs -t xfs /dev/xvdc1 5. 파티션 마운트 mount /dev/xvdf1 /docker 6. UUID 확인 blkid 7. 자동 마운트 설정 vi /etc/fstab --- UUID ="12341201234-234-23-4234-234-234" /docker xfs default 0 0 8. 볼륨마운트 mount -a 2023. 6. 28.
EBS 볼륨 마운트 1. 파일 시스템 용량 확인 df -h 2. 연결된 디스크 목록 확인 lsblk 3. 파티션 생성 command -> n -> p -> p -> w fdisk /dev/xvd 4. 포맷 mkfs -t xfs /dev/xvdc1 5. 파티션 마운트 mount /dev/xvdf1 /docker 6. UUID 확인 blkid 7. 자동 마운트 설정 vi /etc/fstab --- UUID ="12341201234-234-23-4234-234-234" /docker xfs default 0 0 8. mount -a 2023. 6. 28.
쿠버네티스 보안 사례 https://sysdig.com/learn-cloud-native/kubernetes-security/kubernetes-security-101/ Kubernetes Security 101: Fundamentals and Best Practices Kubernetes security is simpler than it sounds. Learn the basics of Kubernetes security, what you need to secure, and best practices for securing it. sysdig.com https://aws.github.io/aws-eks-best-practices/ Introduction - EKS Best Practices Guides Introductio.. 2023. 6. 28.