cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2903
Views
15
Helpful
4
Replies

VPN connect using Java

Is there a way to connect and disconnect VPN in Forticlient programmatically? I see that with Cisco VPN Client, there are options such as using the APIs they provide or executing connectivity ...

4 Replies 4

Merritt
Level 1
Level 1

Greetings,

I'm not certain how to do it programmatically with Cisco. But you may check this solution how to handle the disconnect, where a user wrote an expect script around the client: euer.krebsco.de

 

 

Paul Merritt, dissertation writer

https://dissertationwriter.org/

Jennings
Level 1
Level 1

Pretty much if you are working on building an Android VPN app, OpenVPN comes out as an option. Since OpenVPN has a lot of community support, you can easily build a VPN client for any platform. So I have created to an app in Java, using Android Studio.

Drum69
Level 1
Level 1

@ReedBellamy70042 wrote: WestPennPower

Is there a way to connect and disconnect VPN in Forticlient programmatically? I see that with Cisco VPN Client, there are options such as using the APIs they provide or executing connectivity ...


If you want to connect to a server behind a private VPN, from the outside, nothing you can do on you app can/will allow you to do connect. Unless you launch a VPN client and programmatically connect your network, to that VPN server, your java app will just sit there waiting for a socket on http connect.

Jennings
Level 1
Level 1

A VPN client can be built using OpenVPN on any platform, since it is very community-based. Therefore, I have applied Android Studio to the Java app.