# Proxyman の Access Control（アクセス制御）

> Proxyman の Access Control を使うと、すべての接続を許可、すべての接続を拒否、または特定の IP アドレスのみ許可するかを設定できます。モードは CLI からも変更できます。

## 1. 概要 {#1-whats-it}

Access Control は、リモートデバイス（iPhone、Android、他のコンピュータ）が Proxyman アプリにどのように接続できるかを定義できる高度な機能です。より高いセキュリティが必要なエンタープライズユーザー向けに設計されています。

**Tools** メニュー → **Proxy Settings** → **Access Control…** から開けます。

<table><thead><tr><th width="169">モード</th><th>説明</th></tr></thead><tbody><tr><td>Allow All</td><td>すべてのリモート接続を許可します（デフォルト）。</td></tr><tr><td>Disallow All</td><td>リモート接続をすべて禁止します。</td></tr><tr><td>Specify Remote Devices by IP</td><td>Proxyman アプリへの接続を許可するデバイスを IP アドレスで指定します。</td></tr></tbody></table>

![「Specify Remote Devices by IP」が選択され、2 つの許可された IP アドレスが表示された Proxyman の Access Control ウィンドウ](https://proxyman.com/docs/assets/proxyman-access-control-window.jpg)

_Access Control ウィンドウ_

**Prompt to allow unauthorized connections** にチェックを入れると、リストにないデバイスからの接続を許可するか拒否するかを、Proxyman が確認します。

![リモートデバイスの IP アドレスからの接続を許可するか拒否するかを尋ねる Proxyman のプロンプト](https://proxyman.com/docs/assets/Screenshot%202023-01-19%20at%2014.31.47.png)

_未承認の接続を許可するかどうかの確認_

## 2. コマンドラインで Access Control のモードを上書きする {#2-override-the-access-control-mode-by-command-lines}

Proxyman 4.4.0 以降では、次のコマンドで Access Control のモードを上書きできます。

会社でアプリの UI を使わずにモードを強制したい場合に便利です。

```
$ defaults write ~/Library/Preferences/com.proxyman.NSProxy.plist accessControlModeString "allowAll"
$ defaults write ~/Library/Preferences/com.proxyman.NSProxy.plist accessControlModeString "disallowAll"
$ defaults write ~/Library/Preferences/com.proxyman.NSProxy.plist accessControlModeString "specificIP"
```
