Differences between revisions 1 and 6 (spanning 5 versions)
1413
Comment:
|
1592
|
Deletions are marked like this. | Additions are marked like this. |
Line 32: | Line 32: |
3. firewalld から iptables に変更 | 3. kernelのパケットフィルタを firewalld から iptables に変更 |
Line 44: | Line 44: |
{{{ file: /etc/selinux/config }}} 中 {{{ #SELINUX=enforcing SELINUX=disabled }}} へ変更後、reboot |
|
Line 46: | Line 57: |
file: /etc/ssh/sshd_config | /etc/ssh/sshd_config }}} 中、以下の変更 {{{ |
SL7 (Centos7) OS インストール後の初期設定
1. EPEL repository の追加
# yum install epel-release
2. Yum レポジトリーの変更(ミラーを設定)
/etc/yum.repos.d/
配下のファイル、最初のentry (URL)を
http://ftp.riken.jp/Linux/...
に変更
3. kernelのパケットフィルタを firewalld から iptables に変更
# systemctl stop firewalld.service # systemctl mask firewalld.service # yum install iptables-services # systemctl enable iptables.service # systemctl start iptables.service
4. 必要ならば SE linux を disable する
file: /etc/selinux/config
中
#SELINUX=enforcing SELINUX=disabled
へ変更後、reboot
5. SSHを外部に開いている場合は、パスワード認証を禁止
/etc/ssh/sshd_config
中、以下の変更
PasswordAuthentication no