2023年2月14日火曜日

80ポートデバック

 while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; } | tee /dev/tty | sudo nc -l 80;date; done

curl https://www.xxxx.co.jp/ -H 'X-hoge-hoge:fuga_fuga' -H 'X_hoge_hoge:fuga_fuga'

nc -v host port

tcpdump -nn -i ens192 host 18.221.42.51 and tcp port 80

※ SYNを送ってもACKが返ってこない。
確認
# sysctl net.ipv4.tcp_tw_recycle
net.ipv4.tcp_tw_recycle = 0
設定
# sysctl -w net.ipv4.tcp_tw_recycle=0
net.ipv4.tcp_tw_recycle = 0

→OKだ!!
    やっぱり、初心に戻り、デフォルトルート確認。

0 件のコメント:

コメントを投稿

シャットダウン時の後処理 (shutdown)

# vi /etc/systemd/system/drop.service [Unit] Description= stop httpgwd DefaultDependencies=no Before=shutdown.target RefuseManualStart=true ...