David Raines
Apr 19, 2016
10:42 pm

OpenVPN client in KNOX / getGenericVpnProfile returns null

I'm trying to connect to an OpenVPN server in KNOX.  I'm running outside of a container, but one has been activated, and my application has Device Admin permissions.

I have registered a BroadcastReciever to catch the "com.samsung.android.mdm.VPN_BIND_RESULT" Intent.  My application has the "android.permission.sec.MDM_ENTERPRISE_VPN" permission.

I make the following call, but get back a null result:

EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance();
gvp = ekm.getGenericVpnPolicy("net.openvpn.openvpn");

From the KNOX Premium documentation, I believe that KNOX has support for the "OpenVPN for Samsung KNOX" VPN client.  

I don't know exactly what that is, but I have downloaded "OpenVPN Connect" from the Android Play Store.  Is that the same product?  When I Google the specific string "OpenVPN for Samsung KNOX", I don't find any results, and there's no mention of it on the OpenVPN page.  Is "OpenVPN Connect" the right client to have downloaded?  Is there anything obviously wrong with my API call?

 

Thanks,

David

Similar topics

No similar topics found.
Kamil Kaszubski
Selected Answer
Apr 20, 2016
9:56 am

Hi,

according to the below article OpenVPN for KNOX is working only on one device model.

https://www.samsungknox.com/en/knowledge-base-articles/list-knox-support...

Have you tried to use other VPN client?

Best regards,

Comments

That link doesn't load for me.  Is that page available at a different URL?

Just so I'm clear, if I download either of the 2 VPN clients here:

https://seap.samsung.com/sdk/knox-vpn-android/tools

Will I need any additional licenses to use them?  I have a KNOX Standard and KNOX Premium.

Thanks,

David

David RainesApr 20, 2016 at 1:05 pm

Link attached by me previously contains below information.

KNOX currently supports the following VPN Clients:

  • Cisco – AnyConnect VPN Client for KNOX supports IPSEC and SSL VPN along with per app, on demand features.
  • F5 – Big-IP Edge VPN client for KNOX supports SSL VPN.
  • NCP – Offers IPSec client with many features. NCP client for KNOX is released in April 2015.
  • NetMotion – Big presence in public safety and government sectors, offers proprietary IPSec like VPN. The development of
  • NetMotion VPN client for KNOX is completed, but no MDM support yet.
  • OpenVPN – Open source based SSD VPN. OpenVPN client for KNOX was developed by Samsung KNOX engineering team. Only available for S4 mini today.
  • Pulse Secure – Formerly a part of Juniper. Supports SSL VPN.
  • Strong Swan – Open source based IPSec VPN.
  • Mocana – KeyVPN client for KNOX supports IPSec VPN with per app feature.

You do not need any additional license to use VPN.

Best regards,

Kamil KaszubskiApr 20, 2016 at 1:52 pm