vpn

How can I programmatically connect to a VPN?

吃可爱长大的小学妹 提交于 2019-12-18 04:42:02
问题 I have a VPN connection that I keep losing, that I need to connect to our DB server, but every second or third connection fails because I have lost the VPN connection. I'd like to add somde code - for DEBUG config only - to check the VPN connection and reconnect if necessary, before proceeding to attempt the database connection. 回答1: You could use System.Net.NetworkInformation.Ping to check if the connection is up - then rasdial to reconnect the vpn if the connection is lost. eg System

Create VPN profile on Android

风格不统一 提交于 2019-12-17 23:24:01
问题 Is it possible to programmatically create VPN profile on Android (assuming that I have a rooted device)? If is possible, how? Thanks. 回答1: You should look at the com.android.settings.vpn2 package. There it uses the @hidden KeyStore methods to manipulate VPNs: KeyStore.getInstance().saw(Credentials.VPN) returns an array of String VPN IDs VpnProfile.decode(KeyStore.getInstance().get(Credentials.VPN + vpn_id)) gets the VPN configuration data for the given VPN ID and decodes it as a VpnProfile

Not connecting to SQL Server over VPN

别来无恙 提交于 2019-12-17 17:59:38
问题 I have connected for the first time to an existing network over VPN. I can ping the IP address which is used by the SQL Server from the VPN client, but SSMS does not connect to the SQL Server. I am using the right login id and password. Why could this happen ? Any ideas ? Thanks 回答1: On a default instance, SQL Server listens on TCP/1433 by default. This can be changed. On a named instance, unless configured differently, SQL Server listens on a dynamic TCP port. What that means is should SQL

How do I get the Current User identity for a VPN user in a Windows forms app?

南笙酒味 提交于 2019-12-17 16:49:08
问题 We're currently developing a Windows Smartclient that needs to authenticate users using their AD group membership. We now have a requirement for some users to connect over VPN. Is there any way I can get the AD account identity and groups from the VPN login? WindowsIdentity.GetCurrent() returns the local user account rather than their VPN account information. The local account name is different that the AD account used for the VPN connection. i.e the user is on their home PC, and connecting

How do you detect a VPN or Proxy connection?

不打扰是莪最后的温柔 提交于 2019-12-17 15:56:17
问题 I would like to block all connections to my server that use a VPN or Proxy. Is there anyway to detect that a VPN or proxy connection is being used? If not, is there anyway that I can check the likelihood that a VPN or proxy is being used? Lastly, is there anything that I can query or prompt the user with to check if they are using a VPN or Proxy so that if anyone does get through, I can try and perform additional verification? I do not need any information from the user such as location, true

How to programmatically create a new VPN interface with Android 4.0?

有些话、适合烂在心里 提交于 2019-12-17 10:19:39
问题 I'd like to know whether it's possible to create a VPN interface programmatically with the new VPN APIs in Android 4.0. I've looked through http://developer.android.com/resources/samples/ToyVpn but this is about creating a complete VPN client that handles the connections etc. I only want to add a new VPN configuration and possibly remove existing ones. There are lots of questions like this but they all seem to be pre 4.0. I understand that previously this wasn't possible, but one would think

How to configure VPN programmatically on Android?

别说谁变了你拦得住时间么 提交于 2019-12-17 10:18:56
问题 I need to implement an Android app that would allow the user to configure a VPN connection without having to access the native menu of the Android device. With this I have two problems: in Android 4.0 + (api level 14 and above) I have found there is a new component called VpnService which provides a hook for creating a virtual network interface, configuring it and intercepting / forwarding pachets from it to a VPN server, but there are no built in vpn protocols like PPTP or IPSec, there is

Connecting to server behind VPN with Heroku and Ruby

感情迁移 提交于 2019-12-14 03:47:32
问题 I'm writing an application in Ruby/RoR that will be hosted on Heroku. One of its requirements is that it connects to an (Active Directory) authentication server which is behind a Sonicwall VPN. How can I establish this VPN authentication using Ruby to access this server? 回答1: Heroku is just a service built on top of EC2 that manages deployment using a linux env. You don't have root access on on which means you can connect out to any service using any TCP protocol. But you can only listen for

Pritunl Client: Unable to communicate with helper service, try restarting

妖精的绣舞 提交于 2019-12-13 16:14:47
问题 Can't run Pritunl client anymore. It just keeps showing the same error on my Mac. Error: Unable to communicate with helper service, try restarting OS X: El Capitan 10.11.6 Tried restarting and re-installing the app. The app used to work, not sure when it stopped working as I update most updates which come up in app store. Has anyone experienced this before? Any suggestions on the solution are appreciated. 回答1: After some researching I couldn't find anything useful to resolve the issue but I

How to extend VpnService to open an L2TP/IPSEC connection in android programmatically?

非 Y 不嫁゛ 提交于 2019-12-13 15:23:38
问题 I am looking to implement a solution to open a L2TP/IPSEC connection from the android application so I can simply pass the server ip , pre-shared key , username and password and so the device is connected to this VPN server I looked here https://developer.android.com/reference/android/net/VpnService.html that we need to extend and build our own VPN solutions to do that. Is there any available solutions for that so we can use it instead of reinventing the wheel? I tried the below