VPS管理
Linux設定情報だが、長年やってると完全に忘却するのでカテゴリとして「サーバ管理」を使い、公開情報レベルの話を備忘として記載する。
やること、やったこと
一般
- NTPサーバー構築(chrony)
- [email protected] 時刻合わせできない
- Hostingerでも同様にchronyは使えないっぽい
メール
セキュリティ
mkdir /etc/systemd/system/[email protected]/ touch /etc/systemd/system/[email protected]/timeout.conf [Service] TimeoutSec=10min して systemctl daemon-reload systemctl show [email protected]| grep Timeout
ネットワーク
iptablesは古い、firewalldは使いたくない。ufwが慣れているのでそれを使う。
systemctl stop iptables systemctl disable iptables systemctl status iptables systemctl stop firewalld systemctl disable firewalld systemctl status firewalld
どうにもufwの起動停止でエラーになるので諦めた。https://support.hostinger.com/en/articles/4805502-how-to-set-up-a-firewall-at-vps
Hostingerはsystem-config-firewallをデフォルトで使ってるように見えなくもない