> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeperpam/jp/privileged-access-manager/references/port-mapping.md).

# ポートマッピング

PAM構成での代替ポートの定義

## 概要

接続方法は、リソースレコードのポートフィールドに基づいて決まります。

たとえば、PAMマシンのレコードでは、ポート22でSSH、ポート5985でWinRM (http)、ポート5986でWinRM (https) が使用されます。

想定される標準ポートを以下の表に示します。

#### ローテーション用の標準ポート

<table><thead><tr><th width="195.33333333333331">リソースタイプ</th><th>接続の種類</th><th>標準ポート</th></tr></thead><tbody><tr><td>PAMマシン</td><td>SSH</td><td>22=ssh</td></tr><tr><td>PAMマシン</td><td>WinRM</td><td>5986=winrm</td></tr><tr><td>PAMディレクトリ</td><td>Active Directory</td><td>636=ldaps</td></tr><tr><td>PAMディレクトリ</td><td>OpenLDAP</td><td>636=ldaps</td></tr><tr><td>PAMデータベース</td><td>Postgresql</td><td>5432=postgresql</td></tr><tr><td>PAMデータベース</td><td>MySQL</td><td>3306=mysql</td></tr><tr><td>PAMデータベース</td><td>MariaDB</td><td>3306=mariadb</td></tr><tr><td>PAMデータベース</td><td>Microsoft SQL</td><td>1433=mssql</td></tr><tr><td>PAMデータベース</td><td>Oracle</td><td>1521=oracle</td></tr><tr><td>PAMデータベース</td><td>MongoDB</td><td>27017=mongodb</td></tr></tbody></table>

## ポートマッピングの使用

非標準ポートを使用するには、以下の2つの場所で代替ポートを指定します。

* PAM構成のポートマッピングフィールドに `32636=ldaps` など、`{port}=`{`connection}` と入力します。
* `{connection}` には、標準ポート表の標準ポート列 ( `22=ssh` など) で `=` 以降に示されるラベルを指定します。
* PAMマシン/ディレクトリ/データベースレコードのポートフィールドに、選択したポートを入力

たとえば、ポート3307でMySQLデータベースに接続する場合、PAM構成のポートマッピングに `3307=mysql` を指定し、PAMデータベースレコードのポートフィールドに3307を設定します。

PAM構成では、複数のポートマッピングは改行で区切られます。


---

# 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://docs.keeper.io/keeperpam/jp/privileged-access-manager/references/port-mapping.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.
