Firewall

Code examples for configuring firewall settings (enable/disable, bypass domains/processes, Killswitch, DNS monitor) using FirewallRequest.

Firewall config

Requests presented below are used for configuring the Firewall features:

Enable - enables firewall.

var request = new FirewallRequest { Enable = EmptyRequest.Empty }

Disable - disables firewall (disabled all firewall features).

var request = new FirewallRequest { Disable = EmptyRequest.Empty }

UpdateBypassDomains - updates bypass domain list, constructor contains:

var request = new FirewallRequest
    {
        UpdateBypassDomains = new UpdateBypassDomainsRequest
        {
            Domains = new List<string> { "domain", },
        }
    }

UpdateBypassProcessesRequest - updates bypass proceses list

var request = new FirewallRequest
    {
        UpdateBypassProcesses = new UpdateBypassProcessesRequest
        {
            Processes = new List<string> { "PathToTheProcessExe", },
        }
    }

PermitProcess - adds a process to killswitch exceptions list

RemovePermitProcess - removes a process to killswitch exceptions list

KillSwitch features require the full path to the process file.

EnableDnsMonitor - enables DNS monitor

DisableDnsMonitor - disables DNS monitor

GetKillSwitchState - returns killswitch state

ConfigureFirewallAsync

Sends firewall configuration to the service.

Last updated

Was this helpful?