# プロキシプロパティ構成

前提条件

プロキシプロパティを正常に実装するには、以下を準備してください：

1. **CNAMEレコード**。Akamai Edge DNSなどのDNS管理プラットフォームで登録できます。
2. CNAMEに対応する有効な**証明書**。
3. [モニタリング設定](https://docs.netacea.com/jp/netacea-puraguin/akamai/monitoring-configuration)の完了。

## CNAMEと証明書

CNAMEレコードは、以下で説明する[プロキシプロパティ](#proxy-property-configuration)のedgekey.netドメインを指している必要があります。たとえば、プロキシプロパティのホスト名が「mitigations.examplehost.com」の場合、CNAMEレコードの値は「mitigations.examplehost.com.edgekey.net」となります。CNAME DNSレコードは、Akamai Edge DNS内またはその他のDNS管理プラットフォームから作成できます。

CNAMEを有効にするには、証明書を割り当てる必要があります。これは、新しい証明書でも、既存のDNSレコードから再利用した証明書でも構いません。

## プロキシプロパティの設定

Akamaiプロパティ内の既存の標準ルールとの競合を避けるため、新しいプロキシプロパティを作成する必要があります。このプロパティの唯一の目的は、Akamai EdgeWorkerとNetacea Protector APIの間のプロキシとして機能することです。

{% hint style="info" %}
プロパティのホスト名は任意ですが、セキュリティ対策を強化するため、Netaceaに関連しない名前にしてください。たとえば、「mitigations.examplehost.com」など。
{% endhint %}

このようなプロパティを作成するには、メニューの**CDN**セクションにある**Properties**をクリックします。次に、**+New Property**をクリックします。

<figure><img src="https://2885909206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKs3gGgxDF9S8O56fhTGU%2Fuploads%2Fgit-blob-69c71f88ea3c5b8142a9482a61c94f838879eb4e%2Fimage%20(10).png?alt=media" alt=""><figcaption></figcaption></figure>

プロパティバージョンの編集中に、先ほど作成したドメインをProperty Hostnameとして追加します。

<figure><img src="https://2885909206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKs3gGgxDF9S8O56fhTGU%2Fuploads%2Fgit-blob-e372c82bd334bfa09daeb730b2566b3bea74cf9d%2Fimage%20(17).png?alt=media" alt=""><figcaption></figcaption></figure>

**Property Configuration Settings**で、以下の内容で**Default Rule**を追加/編集します：

### **デフォルトルール**

{% hint style="info" %}
デフォルトの動作は、プロパティホスト名へのすべてのリクエストに適用されます。
{% endhint %}

Default Ruleテンプレートには、必要かつ推奨されるすべての動作が含まれています。ルールは上から下に評価され、最後に一致したルールが優先されます。<br>

<table data-full-width="false"><thead><tr><th>Behaviors</th></tr></thead><tbody><tr><td><p><strong>Origin SSL Certificate Verification</strong></p><p><strong>Ports</strong></p></td></tr><tr><td>3d2d365e9533444f96c27058ee7849e1-1b922c6863224f2e9565a9a2a5a7d997</td></tr><tr><td>9a0fff7e8d404e05bb905cb3b7b116a3-1b922c6863224f2e9565a9a2a5a7d997</td></tr><tr><td></td></tr></tbody></table>

デフォルトルール内に、**Content Provider Code**タイプの新しいBehaviorを追加します。\
\
ドロップダウンから選択するContent Provider Codeのホスト名は、プロキシプロパティのホスト名である必要があります。利用できない場合は、そのホスト名用に新しいCPコードを作成できます。

<table><thead><tr><th width="244">Content Provider Code</th><th></th></tr></thead><tbody><tr><td>Content Provider Code</td><td><strong>000000 - ExampleCPCode1</strong></td></tr></tbody></table>

### CAPTCHAアセットルール

**Property Configuration Settings**で、プロキシプロパティに対して「CAPTCHA Assets Rule」という新しい空白ルールを追加します。ルール内に以下の条件と動作を含めてください：

| 条件               |
| ---------------- |
| すべてに一致           |
| **If**           |
| Path             |
| matches one of   |
| `/Mitigations/*` |

<table data-full-width="false"><thead><tr><th>Behaviors</th></tr></thead><tbody><tr><td><p><strong>Origin SSL Certificate Verification</strong></p><p><strong>Ports</strong></p></td></tr></tbody></table>

{% hint style="danger" %}
プロキシプロパティには**Default**と**CAPTCHA Assets**ルールのみが含まれていることを確認してください。その他のルール（自動的に作成されたものを含む）は、プロキシプロパティの設定を保存する前に削除する必要があります。
{% endhint %}

<figure><img src="https://2885909206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKs3gGgxDF9S8O56fhTGU%2Fuploads%2Fgit-blob-e7f70ec69ae4316c1c3a07280817b3d3f099af8f%2Fimage%20(4)%20(5).png?alt=media" alt=""><figcaption><p>Proxy Property Rules</p></figcaption></figure>

### プロパティの有効化

上記のすべてのルールを作成したら、**Save**をクリックし、**Activate**タブを使用してプロパティの設定への変更を有効化（デプロイ）します。

{% hint style="info" %}
単一のプロキシプロパティを複数のプロパティで使用できます。たとえば、ステージングと複数の本番プロパティで使用できます。
{% endhint %}

### 完了

{% hint style="success" %}
これでプロキシプロパティのプロキシプロパティの設定が完了しました。
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.netacea.com/jp/netacea-puraguin/akamai/installation-and-configuration/proxy-property-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
