2
5

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.

さくらVPSでCentos7を建てた時に最低限やること

Last updated at Posted at 2017-01-22

#個人メモ
ほぼVPS 借りたら、せめてこれくらいはやっとけというセキュリティ設定 | dogmap.jpの通り。
違いのみ記載

serviceコマンドがsystemctlに変わった

service sshd restart

systemctl restart sshd

などへ。

sshのポートを変えたらfirewallの設定も変える

vi /usr/lib/firewalld/services/ssh.xml

  <port protocol="tcp" port="22"/>
を
  <port protocol="tcp" port="10022"/>

に書き換えて

systemctl reload firewalld

参考(というより、まんま)

VPS 借りたら、せめてこれくらいはやっとけというセキュリティ設定 | dogmap.jp

RHEL/CentOS7ではiptablesではなくfirewalld - Qiita

2
5
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
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?