-
.bat、.cmd、.ps1形式のスクリプトファイルを作成し、デバイスへ Cloudflare One Client(旧 WARP)の Windows アプリケーションをダウンロード、インストール、設定します。設定可能なパラメーターをすべて含むサンプルスクリプトは次のとおりです。<# Choose file name for downloading application #> $filename = filename.msi' <# Download URL of the installer. #> $url = 'https://downloads.cloudflareclient.com/v1/download/windows/ga' Write-Host 'Downloading App from' $url Invoke-WebRequest -Uri $url -OutFile $filename <# Run the installer and wait for the installation to finish #> $arguments = "ORGANIZATION="exampleorg" SERVICE_MODE="warp" GATEWAY_UNIQUE_ID="fmxk762nrj" SUPPORT_URL="http://support.example.com"" $installProcess = (Start-Process $filename -ArgumentList $arguments -PassThru -Wait) <# Check if installation was successful #> if ($installProcess.ExitCode -ne 0) { Write-Host "Installation failed!" exit $installProcess.ExitCode } else { Write-Host "Installation completed successfully!" } -
Hexnode を使って、スクリプトファイルをデバイスへ配布します。
-
Hexnode コンソールで、Manage > Devices を開きます。
-
デバイス名を選びます。Device Summary が開きます。
-
Actions > Execute Custom Script を選びます。
-
スクリプトファイルのソースとして Upload file を選び、スクリプトファイルをアップロードします。
-
Execute を選びます。
Cloudflare One Client をデプロイしたあと、Cloudflare One Client の GUI に表示される 接続ステータス メッセージで、接続の進行状況を確認できます。
-
macOS 向け Cloudflare One Client を ダウンロード します。
-
Hexnode コンソールで、Apps > Add Apps > Enterprise App を開きます。
-
アプリのプラットフォームとして macOS を選びます。
-
アプリ名、カテゴリ、説明を追加します。
-
Cloudflare_WARP_<VERSION>.pkgファイルをアップロードし、Add を選びます。 -
アプリでサポートされる設定を含む XML ファイルを用意します。 受け付けるパラメーターを含むサンプル XML は次のとおりです。
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>organization</key> <string>organizationname</string> <key>auto_connect</key> <integer>1</integer> <key>switch_locked</key> <false /> <key>service_mode</key> <string>warp</string> <key>support_url</key> <string>https://support.example.com</string> </dict> </plist> -
Hexnode コンソールで、Policies を開きます。
-
新しいポリシーを作成し、ポリシー名を入力します。
-
macOS > App Management > Mandatory Apps を開き、ポリシーの設定を始めます。
-
Add を選び、先ほどアップロードした Cloudflare One Client アプリを選びます。
-
App Configurations > Add new configuration を開きます。
-
Cloudflare One Client アプリを選び、手順 6 の XML ファイルをアップロードします。
-
Policy Targets を開き、対象エンティティにポリシーを関連付けます。
これで、選択したデバイスへアプリと設定が配布されます。
Cloudflare One Client をデプロイしたあと、Cloudflare One Client の GUI に表示される 接続ステータス メッセージで、接続の進行状況を確認できます。
-
Hexnode コンソールで、Apps > Add Apps > Store App を開きます。
-
アプリのプラットフォームとして iOS を選びます。
-
Cloudflare One Agent ↗ を検索し、アプリを Add します。
-
アプリでサポートされる設定を含む XML ファイルを用意します。サポートされる引数は、次のサンプル XML を参照してください。
<dict> <key>organization</key> <string>yourorganization</string> <key>auto_connect</key> <integer>1</integer> <key>switch_locked</key> <false /> <key>service_mode</key> <string>warp</string> <key>support_url</key <string>https://support.example.com</string> </dict> -
Hexnode にアプリ設定をアップロードします。
- Hexnode コンソールで Apps タブを開きます。
- Cloudflare One Agent アプリを探し、名前を選びます。
- 設定アイコンを選び、App Configuration を選びます。
- 対応するフィールドに XML ファイルをアップロードします。
- Save を選びます。
-
Hexnode を使って、対象デバイスへアプリを配布します。
- Hexnode コンソールで Policies を開き、新しいポリシーを作成します。
- ポリシー名を入力し、iOS を開きます。
- Mandatory Apps > Configure を開きます。
- Add > Add app を選び、必要なアプリにチェックを入れて Done を選びます。
- Policy Targets を開き、対象デバイスにポリシーを関連付けます。
これで、選択したデバイスへアプリと設定が配布されます。
Cloudflare One Client をデプロイしたあと、Cloudflare One Client の GUI に表示される 接続ステータス メッセージで、接続の進行状況を確認できます。
- Hexnode コンソールで、Apps > Add Apps > Managed Google Apps を開きます。
- Cloudflare One Agent ↗ を検索します。
- Managed Google Play アプリとして承認します。
- Policies を開き、新しいポリシーを作成します。
- Android > App Configurations > Add new configuration を開きます。
- Cloudflare One Agent アプリを探し、カスタム設定を行います。
- Policy Targets を開き、対象デバイスにポリシーを関連付けます。
- ポリシーを保存します。
これで、選択したデバイスへアプリと設定が配布されます。
Cloudflare One Client をデプロイしたあと、Cloudflare One Client の GUI に表示される 接続ステータス メッセージで、接続の進行状況を確認できます。