SORACOM Arc クライアント soratun 設定ファイル (デフォルト arc.json) のスキーマです。手動で編集できますが一貫性のない変更を行った場合接続できなくなる可能性があります。可能な限り soratun bootstrap コマンドを使用してください。
設定ファイルの例:
{
  "privateKey": "12345678__CLIENT_PEER_PRIVATE_KEY__90ABCDEF=",
  "publicKey": "GHIJKLMN__CLIENT_PEER_PUBLIC_KEY__OPQRSTUVW=",
  "simId": "8900001234567890123",
  "logLevel": 2,
  "enableMetrics": true,
  "interface": "utun",
  "arcSessionStatus": {
    "arcServerPeerPublicKey": "XYZabcde__SERVER_PEER_PUBLIC_KEY__fghijklmn=",
    "arcServerEndpoint": "xxxxx.arc.soracom.io:11010",
    "arcAllowedIPs": [
      "100.127.0.0/21",
      "100.127.10.0/28",
      "100.127.10.128/25",
      "100.127.10.17/32",
      "100.127.10.18/31",
      "100.127.10.20/30",
      "100.127.10.24/29",
      "100.127.10.32/27",
      "100.127.10.64/26",
      "100.127.11.0/24",
      "100.127.12.0/22",
      "100.127.128.0/17",
      "100.127.16.0/20",
      "100.127.32.0/19",
      "100.127.64.0/18",
      "100.127.8.0/23",
      "54.250.252.67/32"
    ],
    "arcClientPeerIpAddress": "10.227.47.214"
  },
  "additionalAllowedIPs": [
    "10.128.0.0/9"
  ]
}
以下は、"logLevel": 2 を指定した場合の出力例です。
$ sudo soratun up --config /path/to/arc.json
DEBUG: (soratun0) 2021/06/17 14:37:03 device started
DEBUG: (soratun0) 2021/06/17 14:37:03 UAPI listener started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: encryption worker 1 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: decryption worker 1 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: handshake worker 1 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: encryption worker 2 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: decryption worker 2 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: handshake worker 2 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: encryption worker 3 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: handshake worker 4 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: decryption worker 3 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: handshake worker 3 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: encryption worker 4 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: decryption worker 4 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: event worker - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Interface up requested
DEBUG: (soratun0) 2021/06/17 14:37:03 UDP bind has been updated
DEBUG: (soratun0) 2021/06/17 14:37:03 Interface state was Down, requested Up, now Up
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: receive incoming v6 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 UAPI: Updating private key
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: receive incoming v4 - started
DEBUG: (soratun0) 2021/06/17 14:37:03 Routine: TUN reader - started
DEBUG: (soratun0) 2021/06/17 14:37:03 UAPI: Removing all peers
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - Starting
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - UAPI: Created
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - UAPI: Updating endpoint
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - UAPI: Updating persistent keepalive interval
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - Sending keepalive packet
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - Sending handshake initiation
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - Routine: sequential sender - started
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - Routine: sequential receiver - started
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - UAPI: Removing all allowedips
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - UAPI: Adding allowedip
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - UAPI: Adding allowedip
DEBUG: (soratun0) 2021/06/17 14:37:03 assign IP address: x.x.x.x
DEBUG: (soratun0) 2021/06/17 14:37:03 set link up: soratun0
DEBUG: (soratun0) 2021/06/17 14:37:03 add route: 100.127.0.0/16
DEBUG: (soratun0) 2021/06/17 14:37:03 Interface up requested
DEBUG: (soratun0) 2021/06/17 14:37:03 peer(cx/Q…7vVA) - Received handshake response
arcSessionStatus 
WireGuard の接続情報。
| Property | Type | Description | 
|---|---|---|
| arcServerPeerPublicKey* | string | サーバーピア公開鍵。Arc サーバーのサーバーピア公開鍵です。 | 
| arcServerEndpoint* | string | Arc サーバーの Wireguard プロトコルのエンドポイント ( IP アドレスまたはホスト名:ポート番号)。 | 
| arcAllowedIPs* | string[] | Arc サーバーから受信した WireGuard AllowedIPs の配列。 | 
| arcClientPeerIpAddress* | string | クライアントの IP アドレス 。バーチャル SIM/Subscriber に割り当てられた IP アドレスです。 | 
自動的に生成または更新されます。編集しないでください。
profile 
SORACOM API 接続情報。soratun で SORACOM API の認証キーを使用してバーチャル SIM/Subscriber をブートストラップ した際 (soratun bootstrap authkey を実行した際) に保存されます。その他のブートストラップ方法では使用されません。
| Property | Type | Description | 
|---|---|---|
| authKeyId* | string | SAM ユーザーの認証キー ID | 
| authKey* | string | SAM ユーザーの認証キーシークレット | 
| endpoint* | string | SORACOM API のエンドポイント。カバレッジタイプによって異なります。 
 |