웹서버의 주요 정보 확인할 수 있는 사이트 https://sitereport.netcraft.com What's that site running? Using results from Netcraft's internet data mining, find out the technologies and infrastructure used by any site. sitereport.netcraft.com ※ 웹서버 혹은 IP의 OS 및 웹서버 종류 및 버전, 네트워크 정보, 인증서 관련 정보등 확인이 가능하다.
Ansbie에서 각 호스트 SSH 접속할 경우 known_hots 파일에 호스트 키가 저장이 되어 있어야 하며, 저장이 되어 있지 않을 경우 playbook 실행시 호스트key를 찾을 수 없다는 메시지와 함께 실행이 되지 않게 된다. ansible에서는 known_hosts 모듈을 사용하여 known_hosts 파일에 호스트 키를 저장하거나 삭제 할 수 있다. 아래는 호스트 키를 known_hosts 파일에 저장하는 Playbook 파일이며, 호스트 키를 검색 한 후 호스트 키가 없을 경우에 키를 저장할 수 있다. --- #- hosts1 IP : 10.10.10.1 - hosts: host1 gather_facts: no connection: local vars: ssh_known_hosts_comma..
Elasticsearch를 관리자는 관리자 입장에서 또 하나 중요한 부분은 로그에 대한 관리이다. 매일 수십~수백만건이상의 로그를 수집할 경우 언젠간 로그서버의 데이터는 용량 부족으로인한 문제가 발생할 수 있다. 관리자가 주기적으로 오래된 로그를 삭제해 주면 되지만 자동으로 오래된 데이터를 삭제하고 관리할수 있는 Qurator(큐레이터)를 사용하여 자동으로 로그 데이터를 삭제해 주는 시스템을 구축할 수 있다. 1. Curator 설치 pip install elasticsearch-curator ※ 만약 pip 이 설치되어 있지 않다면, epel 저장소를 추가한 후 python-pip을 설치해 주면 된다. yum install epel-release yum install python-pip - curato..
Ansible을 활용하여 Cisco IOS 장비의 배너 문구를 구성할 수 있다. 구성방법은 원격 파일을 사용하거나 직접 입력하는 방법이 있다. 1. file을 통해 banner 업데이트 --- - hosts: Switch gather_facts: no tasks: - name: configure cisco SW banner ios_banner: banner: motd text: "{{ lookup('file', '/etc/ansible/playbooks/raw_banner.cfg')}}" state: present - name: save running to startup when modified ios_config: save_when: modified 2. text line 직접 입력 --- - host..
fortigate # config system admin fortigate (admin) # delete adminuser Cannot delete admin while 'adminuser' is logged in! command_cli_delete:5238 delete table entry hobumnim unset oper error ret=-14 Command fail. Return code -14 fortigate (admin) # 위와 같은 로그가 발생하면서 Fortigate 관리자 계정 삭제가 되지 않는 경우 다음과 같이 해결이 가능합니다. 먼저 get system info admin status 명령어를 통해 admin 상태 정보를 확인합니다. fortigate #get system info..
- Total
- Today
- Yesterday
- routing
- ccna
- EVE-ng
- Linux
- pyqt
- ccnp
- Logstash
- NTOP
- Python
- Kibana
- EVE
- Elk
- Ntopng
- CentOS
- switch
- maximum shards open error
- 코딩
- ubuntu
- nms
- ELASTIC
- ldap
- GUI
- Security
- Fortigate
- 개발
- ccie
- Network
- 파이선
- Elasticsearch
- CISCO
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |