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
- Elasticsearch
- freebsd
- bash
- pfsense
- centos 8
- Proxy
- proxycfg
- macos
- XCP-ng
- 로그인불가
- ansible
- GitLab
- Kibana server is not ready yet
- docker
- xe guest utilities
- Kibana
- 한글가이드
- application security
- PlayBook
- endpoint security
- miniconda
- G-suite
- ELASTIC
- hardening
- x-pack
- elastic stack
- 보안양파
- ssh key 배포
- Windows
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