DeviceDefaultProfile
Source:
src/Cloudflare/Devices/DefaultProfile.ts
Manages the singleton Cloudflare WARP default device profile for an account. The default profile applies to every WARP device not matched by a custom profile.
Configuring split tunneling
Section titled “Configuring split tunneling”Exclude-mode (default): tunnel everything except listed routes
yield* Cloudflare.DeviceDefaultProfile("Default", { mode: "exclude", splitTunnelExclude: [ { address: "10.0.0.0/8", description: "RFC1918" }, { address: "192.168.0.0/16", description: "RFC1918" }, ], excludeOfficeIps: true,});Include-mode: only listed routes go through WARP
yield* Cloudflare.DeviceDefaultProfile("Default", { mode: "include", splitTunnelInclude: [ { address: "10.42.0.0/16", description: "Prod VPC" }, ],});Configuring fallback domains
Section titled “Configuring fallback domains”yield* Cloudflare.DeviceDefaultProfile("Default", { fallbackDomains: [ { suffix: "corp.example.com", dnsServer: ["10.0.0.53"], description: "Corp AD", }, ], disableAutoFallback: true,});