vpn

Programatially determine if Cisco VPN Client is connected

强颜欢笑 提交于 2019-11-30 15:35:43
I am working with the basic Cisco VPN client (v.5 I believe). Is there anyway to determine programatically if a partciular profile (or any profile for that matter) is connected? I'm looking to somehow get a status from the client itself. I don't want to have to try to ping some IP on the other end of the VPN to see if I get a response. There is an API for Cisco VPN (vpnapi.dll). Below a vbs script to check the connection status: bIsVPNConnected = False Set objWMIService = GetObject("winmgmts:\\.\root\CIMV2") Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32

How to turn on VPN from iOS app? (Private APIs OK)

淺唱寂寞╮ 提交于 2019-11-30 14:11:34
问题 When an iOS Device goes into "sleep mode", even a configured VPN is, unfortunately, turned off. A customer that wants an app for his iPad has to use VPN for security, so anything must be done through VPN. The app has to synchronize a lot, but the iOS device might turn off the VPN by itself. That's why I just need to trigger it again every time i need an internet connection (or keep it alive ). Do any of you guys have anything in mind? Even using Private API is ok (the app will only be

How to find the status of VPN connection through framework APIs or any other efficient method?

戏子无情 提交于 2019-11-30 12:14:07
So far: I found the following solutions Using Broadcastreceiver The broadcast receiver is deprecated from ICS Using Ping or Traceroute It's definitely going to take lots of time and its not efficient Polling for DNS server changes It's definitely going to take lots of time and its not efficient Using ip-address Even though it won't take much time depending on the network connection it may vary My conclusion: So far all the solutions I found are either not efficient or not so reliable. My questions: If VPN is connected in android device then android OS must be aware of it. Are there any public

How to turn on VPN from iOS app? (Private APIs OK)

亡梦爱人 提交于 2019-11-30 09:41:00
When an iOS Device goes into "sleep mode", even a configured VPN is, unfortunately, turned off. A customer that wants an app for his iPad has to use VPN for security, so anything must be done through VPN. The app has to synchronize a lot, but the iOS device might turn off the VPN by itself. That's why I just need to trigger it again every time i need an internet connection (or keep it alive ). Do any of you guys have anything in mind? Even using Private API is ok (the app will only be distributed to a customer, not through App Store). Or using any app like Cisco AnyConnect would do the job.

Connect CISCO Anyconnect VPN via bash

半腔热情 提交于 2019-11-30 09:06:44
As title says, trying to connect vpn via bash. The following script seemed closest to the answer I'm looking for: #!/bin/bash /opt/cisco/anyconnect/bin/vpn -s << EOF connect https://your.cisco.vpn.hostname/vpn_name here_goes_your_username here_goes_your_passwordy EOF When I run this the vpn starts but then exits without an error and without connecting. This seems to be caused by the -s. If I remove this parameter the VPN will start but none of the commands (ie connect vpn, username, password) will be entered. From what I read the -s option will allow the username/password to be passed. Help! I

Connecting to a VPN without installation of client software

有些话、适合烂在心里 提交于 2019-11-30 06:38:15
问题 I must sometimes write software to establish a socket with a particular server residing within a Cisco VPN. I simply write my software as if there were no VPN (making use of the standard sockets library). When it is time to run this program, I manually connect to the VPN using the client software installed on my computer, then run the program itself. However, it would be desirable to write the software to take advantage of a specialized socket library capable of communicating over the VPN

JSoup over VPN/proxy

北慕城南 提交于 2019-11-30 05:48:38
问题 I'm trying to use JSoup to scrape some pages that are on a staging server. To view the pages on the staging server with a browser I need to be connected to a VPN. I am connected to the VPN but when I use JSoup to try to scrape the page it keeps timing out. How can I make my program use the VPN connection. Or is there something else here I'm not thinking of? Note: I also make use of HttpClient in another part of my program. Is there a way I can set my program to connect to the VPN/Proxy once

how to detect iphone's VPN connectivity?

佐手、 提交于 2019-11-30 05:31:17
I need to detect whether iphone is connected to VPN or not, programatically. I am developing a app which try to load URL, this page open only when device is connected to VPN. Before loading this URL I need to check VPN connectivity. I tried the following . But this is not working as expected. - (BOOL)checkForVPNConnectivity { NSDictionary *dict = (__bridge NSDictionary *)(CFNetworkCopySystemProxySettings()); //NSLog(@"cfnetwork proxy setting : %@", dict); return [dict count] > 0; } I do not believe that one should determine VPN connectivity by checking for a non-zero number of elements in the

Connect to VPN in Genymotion Android

爱⌒轻易说出口 提交于 2019-11-30 04:58:59
I'm trying to Configure and Connect to VPN in Genymotion Virutal Device, I can configure VPN connection in the Virtual Device but unable to Connect, No error showing. I used same settings in my PC and Real Android Devices, Its working fine in the device and PC. I think Its problem with VirtualBox, But I don't know how to resolve it System Details: OS: Linux Mint 32Bit Genymotion Version : 2.1.1 Virtual Device: Galaxy S4 - 4.3 - API18 - 1080x1920 Genymotion use Virtual Box, you need open this and set the connection Bridged instead NAT, power on the Android Genymotion VM in Genymotion APP and

PHP Post Data Over VPN

一世执手 提交于 2019-11-30 04:37:07
问题 I need to connect to a webservice which is behind of a VPN via PHP. My server is Debian Linux (Squeeze). Is it possible to accomplish this via PHP on Linux? Is it risky to do this if it is possible? (When VPN connection hangs etc., does the operating system or any other what-so-over handles the situation) I have only one network card, therefore I really wonder whether it is possible to keep server online for normal users while "posting data over an accomplished VPN connection in the