2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Linuxのネットワークの疎通確認に使うツール

Posted at

ping

プロトコル: icmp

IP層での疎通を確認する時に使う.応答しないポリシーのサーバには使えない.

ping example.com

玄人はdeadmanを使うとか使わないとか.

tcpdump

プロトコル: IP層~アプリケーション層

パケットをキャプチャする.tsharkでもいけるはず.

sudo tcpdump -i ens160

nc

プロトコル: トランスポート層~アプリケーション層

Firewallが通過するかの確認に使う.

サーバ
nc -kl 3000
クライアント
nc server.example.com 3000

telnet

プロトコル: smtp, http, telnet

アプリケーションやミドルウェアが応答するかのチェックに使う.

telnet example.com 80

curl

プロトコル: http, ftp, sftp, tftp, ldap, ...

アプリケーションやミドルウェアが応答するかのチェックに使う.対応プロトコルが多い.

curl -si http://example.com/

よく使うオプション:

  • -i HTTPレスポンスヘッダが見れる
  • -k SSL証明書のチェックをスキップ
  • -s プログレスバーを出力しない(パイプで渡す時に便利)

その他

nmap, wget, ss(netstat), lsof, ...

コメントで教えて下さい.

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?