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

2019年6月27日以降に契約したさくらのVPSでHTTPやportを変更したSSHなどが繋がらない時

Last updated at Posted at 2019-07-03

2019年6月27日より、さくらの VPS では、「パケットフィルタ」という機能が提供されるようになったようです。

さくらの管理画面上から設定できる、簡易的なファイアウォールです。

CentOS7 インストール直後は、この機能がデフォルトで有効になるようで、初期状態では 22 番ポート(SSH) 以外が、塞がった状態になっています。

この事を知らないと、私のように無駄な時間を費やす事になってしまうかもしれませんので、これから契約する方は注意してください。


中途半端な機能

この「パケットフィルタ」で制御できるのは、「決め打ち」で以下のポートです。

  • 22(SSH)
  • 80/443(HTTP/HTTPS)
  • 20/21(FTP)
  • 25/110/143/465/587/993/995(メール関連)

特に SSH は、ポート番号を変えて運用する方も多いと思いますので、中途半端な機能ですね。

今後は機能改善されるかもしれませんが、Firewalld などを扱える方は、現時点では「パケットフィルタ」を無効にして、そちらで運用することをオススメします。


オマケ:SSH はなぜ 22 番ポートなのか

これだけではあれなので、最後に小ネタを…。

4
2
2

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
4
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?