Process route via VPN
The Unified SDK provides a powerful feature which allows you to selectively route specific processes through the VPN tunnel while keeping all other traffic unaffected. This is the opposite of the Process Bypass feature.
Configuration via VPN
This configuration typically includes these main components:
The
AppPolicyis configured with thePOLICY_FOR_LISTpolicy type.The
appListcontains the package names of the apps to be included:"com.example.app1"and"com.google.android.youtube".The
AppPolicyobject is passed to thewithPolicy()method of theSessionConfig.Builderwhen starting the VPN session.
UnifiedSdk sdk = UnifiedSdk.getInstance();
AppPolicy appPolicy = AppPolicy.newBuilder()
.policy(AppPolicy.POLICY_FOR_LIST)
.appList(Arrays.asList("com.example.app1", "com.google.android.youtube"))
.build();
sdk.getVpn().start(new SessionConfig.Builder()
// ...
.withPolicy(appPolicy)
// ...
);Last updated
Was this helpful?