Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- freebsd
- xe guest utilities
- application security
- miniconda
- hardening
- Proxy
- elastic stack
- endpoint security
- ELASTIC
- docker
- ssh key 배포
- Kibana server is not ready yet
- centos 8
- Elasticsearch
- pfsense
- 한글가이드
- bash
- 보안양파
- GitLab
- Kibana
- XCP-ng
- proxycfg
- 로그인불가
- G-suite
- Windows
- x-pack
- ansible
- macos
- PlayBook
Archives
- Today
- Total
선 밖에 선 자유인
Linux ping test/port open check 본문
- ping test
ping -c 1 -w 2 <ipaddress>
- port open check
nc -w 5 -z <ipaddress> <port>
결과를 저장하는 $? 변수를 이용하여 결과 확인
0 : 정상
1 : X
Ex)
if [ $? -eq 0 ]; then
echo "Live"
else
echo "Down"
fi
- 이런 방법도 가능
IP=x.x.x.x
PORT=80
# </dev/tcp/$IP/$PORT
Comments