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 AppPolicy is configured with the POLICY_FOR_LIST policy type.

  • The appList contains the package names of the apps to be included: "com.example.app1" and "com.google.android.youtube".

  • The AppPolicy object is passed to the withPolicy() method of the SessionConfig.Builder when 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