본문 바로가기

728x90

전체 글

[AWS] AWS 네트워크 방화벽(Network Firewall) 구성 시 라우팅 테이블 설정 AWS 네트워크 방화벽 구성 시 라우팅 테이블 설정 구성도 라우팅 테이블 설정 - IGW 라우팅 테이블(신규 생성) - 방화벽 라우팅 테이블(신규 생성) - 고객(web zone) 라우팅 테이블 https://aws.amazon.com/ko/blogs/networking-and-content-delivery/deployment-models-for-aws-network-firewall/ Deployment models for AWS Network Firewall | Amazon Web Services Introduction AWS services and features are built with security as a top priority. With Amazon Virtual Private Cloud .. 더보기
rsync 명령어 rsync 전송 후 원본 파일(source file) 삭제 명령어 rsync --remove-source-files -av test.txt rsync-user@targethost2:/tmp/ 위의 rsync 명령어는 파일 test.txt를 원격 호스트 targethost2의 /tmp/ 디렉토리로 복사하고, 복사가 완료되면 원본 파일을 삭제하는 명령어입니다. 각 옵션의 역할은 다음과 같습니다. --remove-source-files: 복사가 완료된 후 원본 파일을 삭제합니다. -av: -a는 아카이브 모드를 의미하며, 파일 복사를 위한 여러 설정을 결합합니다. -v는 상세한 출력을 표시하라는 의미입니다. test.txt: 복사할 파일의 이름입니다. rsync-user@targethost2:/tmp/: 복사.. 더보기
[Ansible] Amazon Linux에 Ansible AWX를 설치하는 방법 Amazon Linux에 Ansible AWX를 설치하는 방법 AWX 설치 스크립트(테스트 중) cat 더보기
[AWS] Auto Scaling 그룹의 용량을 조정하는 방법 Auto Scaling 그룹의 용량을 조정하는 방법 대상 추적 조정 정책(Target tracking scaling) : 특정 측정치의 목표값을 기준으로 그룹의 desired capacity를 늘리거나 줄입니다. 단계 조정 정책(Step scaling) : 조정값(임계치) 초과의 정도에 따라 desired capacity를 늘리거나 줄입니다. 단순 조정 정책(Simple scaling) : 조정값에 따라 desired capacity를 늘리거나 줄입니다 what-is-amazon-ec2-auto-scaling Amazon EC2 Auto Scaling란 무엇입니까? - Amazon EC2 Auto Scaling 이 페이지에 작업이 필요하다는 점을 알려 주셔서 감사합니다. 실망시켜 드려 죄송합니다. 잠깐 .. 더보기
[Ansible] ansible 인벤토리 설정 파일 ansible 인벤토리 설정 파일 인벤토리 설정 기본적으로 /etc/ansible/hosts 파일 사용한다 > vim /etc/ansible/hosts [aweb21] asweb21 ansible_host=10.21.3.54 ansible_connection=ssh ansible_por=22 ansible_user=ec2-user ansible_ssh_private_key_file=~/aws-key/keyfile.pem asweb22 ansible_host=10.21.4.199 ansible_connection=ssh ansible_por=22 ansible_user=ec2-user ansible_ssh_private_key_file=~/aws-key/keyfile.pem 인벤토리에 등록된 호스트로 핑 .. 더보기
[Ansible] ansible 인벤토리 설정 파일 ansible 인벤토리 설정 파일 인벤토리 설정 기본적으로 /etc/ansible/hosts 파일 사용한다 > vim /etc/ansible/hosts [aweb21] asweb21 ansible_host=10.21.3.54 ansible_connection=ssh ansible_por=22 ansible_user=ec2-user ansible_ssh_private_key_file=~/aws-key/keyfile.pem asweb22 ansible_host=10.21.4.199 ansible_connection=ssh ansible_por=22 ansible_user=ec2-user ansible_ssh_private_key_file=~/aws-key/keyfile.pem 인벤토리에 등록된 호스트로 핑 .. 더보기
[Ansible] MacOS에 Ansible을 설치하기 MacOS에 Ansible을 설치하기 pip로 Ansible 설치 > pip3 install ansible > ansible --version ansible 2.10.9 config file = None configured module search path = ['/Users/sangchul/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible python version = 3.9.1 (default, Jan 8 2021,.. 더보기
Nginx의 액세스 로그에서 공격자 IP(attacker ip) 주소를 추출하는 방법 Nginx의 액세스 로그에서 공격자 IP(attacker ip) 주소를 추출하는 방법 tail -n 10000 access.log | awk '{print $1}' | sort | uniq -c | sort -nr | head -n 10 $ tail -n 10000 /var/log/nginx/access.log | awk '{print $1}' | sort | uniq -c | sort -nr | head -n 10 554 111.111.111.111 210 222.222.222.222 57 222.222.222.223 56 222.222.222.224 50 222.222.222.225 48 222.222.222.226 48 222.222.222.227 45 222.222.222.228 44 222.22.. 더보기

728x90
반응형