Domain route via VPN

Overview

See Domain route via VPN

Configuration via VPN

let bypassConfiguration = BypassConfiguration(
    isBypassEnabled: false,
    bypassDomainsBehaviour: .bypassAllExcept,
    bypassDomains: ["*.domain1.com", "domain2.net", "domain3.org"],
    bypassDNSServer: nil
)

In this example:

  • Traffic for subdomains of domain1.com, domain2.net and domain3.org will be routed through the VPN.

  • All other traffic will bypass the VPN and use direct connections.

circle-exclamation
circle-info
  • The configuration also supports wildcards. In the example, *.domain1.com means all subdomains of domain1.com will bypass the VPN, but domain1.com itself will not.

  • The Domains Route via VPN feature is currently available only on Hydra/WireGuard VPN configurations. It is not supported on IPSec VPN setups.

Last updated

Was this helpful?