> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/autofix-to/connect-private-packages/allowing-ip-addresses-on-private-package-repositories.md).

# プライベートパッケージリポジトリでIPアドレスを許可する

プライベートのパッケージリポジトリでパッケージへのアクセスを特定の静的 IP アドレスのみに許可している場合、AutoFix を作成する前に Aikido の IP アドレスを許可リストに追加する必要があります。

## どの IP を許可リストに追加すべきですか？

プライベートパッケージリポジトリへの AutoFix 通信は、次のリージョンから発生します。 **Aikido のワークスペースが** ホストされているリージョンからであり、パッケージレジストリが動作しているリージョンからではありません。Aikido にログインする際に使用する URL を確認し、そのリージョンの IP を許可リストに追加してください:

| Aikido の URL                                   | リージョン | IP リスト          |
| ---------------------------------------------- | ----- | --------------- |
| [app.aikido.dev](https://app.aikido.dev)       | EU    | EU ベースの IP アドレス |
| [app.us.aikido.dev](https://app.us.aikido.dev) | US    | 米国ベースの IP アドレス  |
| [app.au.aikido.dev](https://app.au.aikido.dev) | AU    | 近日公開            |
| [app.me.aikido.dev](https://app.me.aikido.dev) | ME    | ME ベースの IP アドレス |

{% hint style="warning" %}
次の URL にログインしている場合： `app.aikido.dev`、AutoFix は使用します **EU** IP を使用します。パッケージレジストリが米国でホストされている場合でも同様です。その場合に米国の IP のみを許可リストにすると、AutoFix は失敗します。
{% endhint %}

## IP アドレス

### EU ベースの IP アドレス（`app.aikido.dev`)

* 52.214.244.18
* 18.202.209.180
* 52.50.198.227
* 52.51.98.186

### 米国ベースの IP アドレス（`app.us.aikido.dev`)

* 3.211.221.73
* 54.163.131.24
* 54.225.143.47

### ME ベースの IP アドレス（`app.me.aikido.dev`)

* 3.29.13.194
* 40.172.18.244
* 40.172.67.79

IP を追加したら、接続を確認するために AutoFix を再トリガーしてください。

サードパーティプロバイダーで IP アドレスを許可リストに登録する方法については、次のリソースを参照してください:

* [Cloudflare WAF](https://developers.cloudflare.com/waf/custom-rules/use-cases/allow-traffic-from-ips-in-allowlist/)
  * Cloudflare Turnstile は、特定のクライアント IP アドレスを許可リストに登録することをサポートしていません。必要な場合は [Aikido のスキャン通信に対して Turnstile をバイパスするには、アプリケーションコードで実装する必要があります。](https://developers.cloudflare.com/turnstile/tutorials/conditionally-enforcing-turnstile/) 次の両方の条件が真である場合にのみ、バイパスすることを推奨します:
    1. リクエストの送信元が Aikido の IP 範囲である
    2. リクエストに次のものが含まれている `aikido` 上記のとおり、ヘッダー内に User Agent
* [Azure WAF](https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/custom-waf-rules-overview)
* [AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-ipset-match.html).
  * Application Load Balancer や CloudFront の背後にある WAF では、 [WAF は、最後の IP アドレスを確認する必要があります `X-Forwarded-For` ヘッダー](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-forwarded-ip-address.html).
* [Vercel WAF](https://vercel.com/docs/vercel-firewall/vercel-waf/custom-rules)
  * 次を使用してください: [「バイパス」アクション](https://vercel.com/docs/vercel-firewall/firewall-concepts#bypass) 信頼済み IP 向けの

{% hint style="info" %}
[IP アドレス一覧は JSON 配列としても利用できます](https://aikido.help/ips/)
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.aikido.dev/docs/docs-ja/autofix-to/connect-private-packages/allowing-ip-addresses-on-private-package-repositories.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
