Domain route via VPN
This allows you to selectively route specific domains through the VPN tunnel while keeping all other traffic unaffected. This is the opposite of the Domain Bypass feature.
Configuration via VPN
This configuration typically includes these main components:
List<String> domainsRouteViaVPNcreates a newArrayListto store a list of domains that will be bypassed by the VPN.addCategoryRule()adds a category rule to theSessionConfigusingFireshieldCategoryRule.Builder.fromDomains(), which takes a category name("safeCategory")and a list of domains.
UnifiedSdk sdk = UnifiedSdk.getInstance();
List<String> domainsRouteViaVPN = new ArrayList<>();
domainsRouteViaVPN.add("*domain1.com");
domainsRouteViaVPN.add("intranet.company.com");
sdk.getVpn().start(new SessionConfig.Builder()
// ...
.addCategoryRule(FireshieldCategoryRule.Builder.fromDomains("safeCategory", domainsRouteViaVPN))
// ...
);Last updated
Was this helpful?