SSHの設定に引き続き、ファイヤーウォール(iptables)の設定をする。 1. iptablesの設定 以下のサイトの説明がわかりやすいので、その通りにした。設定ファイルの場所は、/etc/sysconfig/iptables。 さくらのVPS を使いはじめる 3‐iptables を設定する 流れとしては、以下のようになる。 VPSにiptablesがインストールされていることを確認 現在のiptablesの設定を確認 ポートの設定 iptablesの再起動と動作確認 SSH, HTTP, FTP1, FTP2, MySQLのパケットを許可(ACCEPT)した。その後、iptablesがOS起動時に自動起動する設定になっているかを確認するために、以下のコマンドを実行する。 $ chkconfig --list iptables iptables 0:off 1:off 2:on 3: