# ポートマッピング

## 概要

ローテーションは、リソースレコードのポートフィールドに基づいて接続方法を決定します。

たとえば、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>ssh=22</td></tr><tr><td>PAMマシン</td><td>WinRM</td><td>winrm=5986</td></tr><tr><td>PAMディレクトリ</td><td>Active Directory</td><td>ldaps=636</td></tr><tr><td>PAMディレクトリ</td><td>OpenLDAP</td><td>ldaps=636</td></tr><tr><td>PAMデータベース</td><td>Postgresql</td><td>postgresql=5432</td></tr><tr><td>PAMデータベース</td><td>MySQL</td><td>mysql=3306</td></tr><tr><td>PAMデータベース</td><td>MariaDB</td><td>mariadb=3306</td></tr><tr><td>PAMデータベース</td><td>Microsoft SQL</td><td>mssql=1433</td></tr><tr><td>PAMデータベース</td><td>Oracle</td><td>oracle=1521</td></tr><tr><td>PAMデータベース</td><td>MongoDB</td><td>mongodb=27017</td></tr></tbody></table>

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

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

* PAM構成のポートマッピングフィールドに`32636=ldaps`など、`{port}=`{`connection}`と入力します。
* `{connection}`は、標準ポート表の標準ポートのラベルを参照してください。
* PAMマシン/ディレクトリ/データベースレコードで、選択したポートをポートフィールドに入力します

たとえば、ポート3307を使用してMySQLデータベースに接続するには、PAM構成のポートマッピングで`3307=mysql`を指定し、PAMデータベースレコードでポート3307を参照する必要があります。

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


---

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