コンテンツにスキップ

アカウントのダッシュボードでのマネージドルールセットのデプロイ

アカウントのマネージドルールセットは、アカウントホーム > WAF > Managed rulesets でデプロイできます。

単一のゾーンに対してマネージドルールセットをデプロイするには、ゾーンのダッシュボードでマネージドルールセットをデプロイするを参照してください。

アプリケーションセキュリティ > WAF の Managed rulesets タブにおける WAF マネージドルールの設定の例。

マネージドルールセットをデプロイする

  1. Cloudflareダッシュボードにログインし、アカウントを選択します。

  2. アカウントホーム > WAF > Managed rulesets に移動します。

  3. Deploy > Deploy managed ruleset を選択します。

  4. デプロイしたいマネージドルールセットの横にある Select ruleset を選択します。

  5. Execution name にルールセットをデプロイするルールの名前を付けます。

  6. (オプション)特定の受信リクエストのサブセットに対してマネージドルールセットを実行するには、Edit scope を選択し、現在のルールがマネージドルールセットをデプロイする範囲を決定する 式を設定します。

  7. (オプション)次の方法でマネージドルールセットの動作をカスタマイズできます:

  8. マネージドルールセットをすぐにデプロイするには、Deploy を選択します。デプロイする準備ができていない場合は、Save as Draft を選択します。

Deployed managed rulesets リストには、デプロイしたマネージドルールセットの Execute ルールが表示されます。

マネージドルールセットをオンまたはオフにする

デプロイされたマネージドルールセットの横にある Enabled トグルを選択して、オンまたはオフにします。

マネージドルールセットを設定する

マネージドルールセットを設定して、1つまたは複数のルールの特定のフィールド値を定義します(たとえば、Cloudflareによって設定されたアクションとは異なるアクションを持つルールを設定)。特定のルールをオフにすることもできます。

特定の受信リクエストに対して1つ以上のルール、または全体のWAFマネージドルールセットをスキップするには、例外を追加します。例外はスキップルールとも呼ばれ、Deployed managed rulesets リストに Skip ルールとして表示されます。

すべてのルールのフィールド値を設定する

マネージドルールセット全体を設定するには:

  1. Cloudflareダッシュボードにログインし、アカウントを選択します。

  2. アカウントホーム > WAF > Managed rulesets に移動します。

  3. 設定したいマネージドルールセットをデプロイする Execute ルールのルール説明を選択します。あるいは、三点リーダーを選択して Edit を選択します。

    まだマネージドルールセットをデプロイしていない場合は、次の手順を実行します:

    1. Deploy > Deploy managed ruleset を選択します。
    2. デプロイして設定したいマネージドルールセットの横にある Select ruleset を選択します。
  4. ルールセット設定セクションで、ドロップダウンリストから利用可能な値の1つ以上のルールフィールドを設定します。正確なオプションは、設定しているマネージドルールセットによって異なります。

    たとえば、ルールセット内のすべてのルールに対して実行するアクションを Ruleset action ドロップダウンリストから選択します。

    ルールセット内のすべてのルールをオーバーライドするための利用可能なオプションを表示するデプロイ設定ページ。表示されているマネージドルールセットでは、ルールセットアクションをオーバーライドできます。

  5. デプロイされたマネージドルールセットを編集している場合は、Save を選択します。まだマネージドルールセットをデプロイしていない場合は、Deploy を選択してルールセットをすぐにデプロイするか、Save as Draft を選択して後でデプロイ設定を保存します。

マネージドルールセット内のルールを一括設定する

  1. Log in to the Cloudflare dashboard, and select your account.

  2. Go to Account Home > WAF > Managed rulesets.

  3. If you have already deployed the managed ruleset you want to configure, find the rule deploying that managed ruleset and select the rule description. Alternatively, select the three dots > Edit next to an Execute rule deploying the managed ruleset.

    If you have not deployed the managed ruleset:

    1. Select Deploy > Deploy managed ruleset.
    2. Next to the managed ruleset, select Select ruleset.
  4. Select Browse rules.

    The Cloudflare dashboard displaying the list of rules in the Cloudflare Managed Ruleset

  1. Search for rules using the available filters. You can search for tags.

  2. In the results list, select the checkboxes for all the rules you want to configure.

    Alternatively, select a tag name under the search input to filter the rules with that tag, and then select the checkboxes for the rules you want to configure. To extend your selection to all rules with the tag across all pages, select Select all <NUMBER> rules.

    Selecting all rules in a page displays additional drop-down lists above the table to override the behavior of several rules at once.

  3. Update one or more fields for the selected rules using the buttons displayed in the top right corner of the table.

  4. Select Next.

  5. If you selected a tag, a dialog appears asking you if any new rules with the selected tag should be configured with the field values you selected.

    • Select Do not apply to new rules to apply your configurations to the selected rules only.
    • Select Apply to new rules if you want to apply your configurations to any new rules with the select tag.
  6. Select Save.

マネージドルールセット内の単一のルールを設定する

  1. Log in to the Cloudflare dashboard, and select your account.

  2. Go to Account Home > WAF > Managed rulesets.

  3. If you have already deployed the managed ruleset you want to configure, find the rule deploying that managed ruleset and select the rule description. Alternatively, select the three dots > Edit next to an Execute rule deploying the managed ruleset.

    If you have not deployed the managed ruleset:

    1. Select Deploy > Deploy managed ruleset.
    2. Next to the managed ruleset, select Select ruleset.
  4. Select Browse rules.

    The Cloudflare dashboard displaying the list of rules in the Cloudflare Managed Ruleset

  1. Search for a rule using the available filters. You can search for tags.

  2. Find the rule you want to configure in the results list.

  3. In the result line for the rule you want to change, select the desired value for a field in the displayed drop-down lists. For example, select the rule action in the Action dropdown. You can also change the status of a rule using the Status toggle next to the rule.

  4. Select Next, and then select Save.

マネージドルールセットのルールをブラウズする

マネージドルールセット内の利用可能なルールをブラウズし、個々のルールやタグを検索できます。

  1. Cloudflareダッシュボードにログインし、アカウントを選択します。

  2. アカウントホーム > WAF > Managed rulesets に移動します。

  3. 設定したいマネージドルールセットをデプロイする Execute ルールのルール説明を選択します。あるいは、三点リーダーを選択して Edit を選択します。

    まだマネージドルールセットをデプロイしていない場合は、次の手順を実行します:

    1. Deploy > Deploy managed ruleset を選択します。
    2. ブラウズしたいマネージドルールセットの横にある Select ruleset を選択します。
  4. Browse rules を選択します。

    Cloudflare Managed Ruleset内のルールのリストを表示するブラウズルールページ

マネージドルールセットのデプロイルールまたは例外を削除する

  1. Cloudflareダッシュボードにログインし、アカウントを選択します。
  2. アカウントホーム > WAF > Managed rulesets に移動します。
  3. Deployed managed rulesets の下で削除したいルールの横にある三点リーダーを選択し、Delete を選択して操作を確認します。