0
0

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 5 years have passed since last update.

DHCP->固定IPにしたサーバにアクセスできなくなったとき

Last updated at Posted at 2020-02-27

すべてのポートに届かない

GUIから変更したのがダメみたい。
/etc/network/iptabesを書き換えよう

参考:
Static IP Configuration on Ubuntu 16.04 | Snel.com

Dockerの80番だけ届かない

-p 80:3000のように起動したコンテナに入るときにERR_CONNECTION_REFUSEDとなる場合。

理由はわからないがIptablesをリセットし、

参考
networking - Port 80 connection refused - Ask Ubuntu

リセット用スクリプト参考
Linux: Reset iptables firewall rules – Ali Aboosaidi

さらにsystemctl restart dockerをしてiptablesを作り直すと直る

再起動するともう一度Iptablesのリセット->Dockerデーモンの再起動やり直し

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?