Domain Bypass

Overview

See Domain Bypass

Updating Bypass Domain

To update the bypass domain list programmatically, you can utilize the following:

circle-info

Using "ConfigureFirewallAsync" will create the necessary bypass rules only after the VPN tunnel is up. If you want to explicitly apply domain bypass immediately after sending to the SDK - use "ConfigureBypassDomains/ConfigureBypassDomainsAsync".

var sdk = new SDK();
var request = new FirewallRequest
{
    UpdateBypassDomains = new UpdateBypassDomainsRequest
    {
        Domains = new List<string> { "domain1.com", "domain2.net", "domain3.org" },
    },
};

var result = await sdk.ConfigureFirewallAsync(request).ConfigureAwait(false);
Console.WriteLine(result.UpdateBypassDomains);
// Message: "Ok"
// Result: Ok

In this example, by setting its Domains property to a list of domain names, those domains will be routed outside the VPN tunnel whenever they are accessed.

Explicitly Updating Bypass Domain

More Information

See Common Issues

Last updated

Was this helpful?