Questions tagged [vpn]

A virtual private network (VPN) is a network that uses primarily public telecommunication infrastructure, such as the Internet, to provide remote offices or travelling users access to a central organizational network. Questions about configuring or using a VPN should be asked on Super User or Server Fault.

Virtual private networks encapsulate data transfers using a secure cryptographic method between two or more networked devices (which are not on the same private network) to keep the transferred data private from other devices on the wide area networks. (adapted from Wikipedia)

Although VPNs are private, they still use public resources. This means that all data sent over the network needs to be encrypted encase it is intercepted during the transfer.

Please keep in mind that questions about how to set up or use VPN software do not involve programming, and are therefore off-topic for this site. You may want to try posting these questions on Server Fault instead.

3339 questions
16
votes
1 answer

How to Create a Virtual Network Adapter in .NET?

I would like to create/add a virtual network adapter to a client operating system at runtime (via code), preferably in C#. Something similar to that of what VirtualBox/VMware/Himachi creates when you install their software. I am guessing this will…
Simpleton
  • 1,201
  • 3
  • 13
  • 16
16
votes
2 answers

mount remote windows share from centos

I am trying to setup a script that will: Connect to a windows share Using LOAD DATA LOCAL INFILE, upload the two files into their appropriate db tables Umount share Situation: I can currently vpnc into this remote machine Problem: I cannot mount…
richardwhitney
  • 506
  • 1
  • 6
  • 21
15
votes
3 answers

Connecting to a VPN without installation of client software

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…
Adam Paynter
  • 46,244
  • 33
  • 149
  • 164
15
votes
1 answer

VPN connection from Android emulator fails

I am new to Android development. I am trying to join an existing VPN from my Android app. I want to integrate the VPN in my app; my app then is supposed to query a remote database. I got some code and tried to use it to create a VPN. It emulates…
electric_sheep
  • 151
  • 1
  • 3
14
votes
1 answer

How can I programmatically connect to a VPN?

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…
ProfK
  • 49,207
  • 121
  • 399
  • 775
14
votes
1 answer

Programmatically configure PPTP/ L2TP VPN in Android

I have read about VpnService and VpnService.Builder but could not get any method to set vpn type to PPTP or L2TP, even I didn't get any method where I can set user/ password. Note: There are many questions in SO I read them but didn't find solution.…
Android Learner
  • 2,559
  • 6
  • 34
  • 43
13
votes
1 answer

connect to sql via windows authentication over vpn

Is there any way I can connect to a remote SQL server with Windows Authentication over VPN? I can connect to the VPN server in Windows 7 using Domain Credentials like \DOMAIN\user but I want to be able to connect to the SQL server with the Domain…
pufos
  • 2,890
  • 8
  • 34
  • 38
13
votes
1 answer

AWS multiple VPN client certificates

Using AWS I need to make sure I have multiple clients using the VPN network. Each of the clients will use the same server certificate I created earlier. Now using this documentation I managed to setup my own VPN and been able to connect to it using…
JustLudo
  • 1,690
  • 12
  • 29
13
votes
1 answer

iOS VPN Connection Blocks Switching 4G to WiFi Connection

I am creating a VPN connection in Swift with the on demand connect rule below: let config = NEVPNProtocolIPSec() config.serverAddress = "" config.username = "" config.passwordReference = "" …
mTuran
  • 1,846
  • 4
  • 32
  • 58
13
votes
2 answers

Using NEVPNManager in iOS 8, How can I programmatically create VPN connections to custom VPN types? (e.g. Cisco any connect)

Looking at VPN configuration in apple's Configurator tool, it offers many different types of VPN, such as L2TP PPTP Cisco AnyConnect Juniper SSL Check Point Mobile VPN etc I'd like to create a custom VPN configuration programmatically using…
Orion Edwards
  • 121,657
  • 64
  • 239
  • 328
13
votes
3 answers

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

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…
Durai Amuthan.H
  • 31,670
  • 10
  • 160
  • 241
13
votes
1 answer

NetworkExtension - NEVPNManager

Apple published with iOS 8 a new Framework "NetworkExtension". I want to start a VPN Connection out of an app with the NEVPNManager, or has this Framework another use? Has somebody information or an example about this Framework? I can´t find…
speedboosting
  • 131
  • 1
  • 5
13
votes
1 answer

How do you connect to vpn using node.js

I am a newbie to node.js and looking for some example code or pointers on connecting through PPTP to a private virtual ip address using VPN connection. I have a node.js server running on aws that currently uses udp to connect to a public ip address.…
montage9
  • 131
  • 1
  • 1
  • 4
13
votes
4 answers

How can I know whether a VPN connection is established or not?

I have a VPN connection. In order to establish the VPN connection, there is a PPTP.bk file which must be executed. Upon running this file and entering the credentials, the VPN connection is established. I am trying to connect and disconnect the VPN…
Hossein
  • 24,202
  • 35
  • 119
  • 224
12
votes
3 answers

How do I use Tor as system VPN and cut out some nodes?

How can I configure Tor as a VPN and use it so that my system automatically connects to Tor and route all traffic through it? I've found a couple of pieces of freeware, like FreeCap (forcing programs to use Sock server), but it doesn't really do…
Wiki Links
  • 121
  • 1
  • 1
  • 3