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