> For the complete documentation index, see [llms.txt](https://docs.plura.io/ja/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plura.io/ja/agents/waf.md).

# ウェブファイアウォール(WAF)

{% hint style="info" %}
サポートオペレーティングシステム

* Rocky Linux 9
  {% endhint %}

### 1. 事前作業 <a href="#id-1" id="id-1"></a>

* ウェブファイアウォールをインストールするEC2インスタンスにターミナルで接続し、root権限でインストールを行います。
* システムに合わせてタイムゾーンの設定および時刻同期の設定を行います。

```sh
timedatectl set-timezone Asia/Tokyo
```

```sh
ntpdate time.google.com
```

* ファイアウォールおよびネットワークセキュリティの設定:
  * 80番や443番などのウェブサービスで使用されるポートの接続を許可します。

### 2. インストール作業 <a href="#id-2" id="id-2"></a>

* Webファイアウォールエージェントのインストール

```sh
curl https://repo.plura.io/v5/agent/linux/install.sh | bash
```

```sh
/etc/plura/plura.sh install_waf
```

* ヘルスチェッカーアップロード例外設定コマンド

```bash
echo '[{"User-Agent": "ELB-HealthChecker/2.0"}]' > /etc/plura/conf/weblog-excluder.json
```

```bash
echo '[{"User-Agent": "ELB-HealthChecker/2.0"}]' > /etc/plura/conf/weblog-excluder.json
```

* ライセンスキーの登録と実行

```sh
/etc/plura/plura.sh register ****
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.plura.io/ja/agents/waf.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.
