Questions tagged [openvpn]

Free software implementing virtual private networks (VPN). **Important:** This tag is exclusively for programming-related questions, NOT for general questions on configuring or using VPNs; questions about general network and server administration should be directed to Server Fault, and questions about general software use should be directed to Super User.

OpenVPN is an open source software application that implements virtual private network (VPN) techniques for creating secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. OpenVPN allows peers to authenticate each other using a pre-shared secret key, certificates, or username/password.

In contrast to traditional VPN which uses IPSec/IP protocol (with which many home routers and firewalls have issues), it uses TLS over TCP/IP and UDP/IP protocols.

Read more about OpenVPN at Wikipedia..

954 questions
1
vote
0 answers

Issue in sending data to the server on openvpn

I have the following socket programming code. My client program is running on a VM on desktop machine using virtual box and my server program is running on a University cluster VM. The client is unable to send the data to the server. Both client and…
gohar shah
  • 165
  • 1
  • 10
1
vote
1 answer

Adding Pre-built Apk in AOSP crashes

AOSP 10 OpenVPN official App I am trying to add OpenVPN app in AOSP but it crashes. I have checked it by installing in device, it works fine when I install it from playstore/f-droid or downloaded apk through adb install. When I add this apk in…
semw
  • 137
  • 1
  • 1
  • 10
1
vote
0 answers

'couldn't find "libopvpnutil.so"' OpenVPN android Library

Hello Developers I'm trying to integrate OpenVPN Library in an existing android app. When I'm trying to connect to a profile the following error is showing, couldn't find "libopvpnutil.so" Please help me to solve this problem.
kish0n
  • 127
  • 3
  • 10
1
vote
0 answers

Pritunl stuck on "Generating setup server ssl cert"

I just installed Pritunl with its rpm/pkgs on Centos 7 and Ubuntu 18.04 and both stuck on "Generating setup server ssl cert". Any idea that what is the problem? I want to use it for managing my openvpn clients. I use it many times and had no such…
Ali
  • 337
  • 1
  • 5
  • 15
1
vote
0 answers

Problem with connecting VPN (Networkmanager&Openvpn plugin) raspian RESOLVE: Cannot resolve host address

I have a problem with connecting to VPN. When I start up the raspberry device and connect the VPN with nmcli connection up VPN it succeceds. But if I bring the interface down and trying to bring it up again it fails. If I restart the raspberry I can…
Armin
  • 11
  • 1
1
vote
1 answer

OpenVPN client as internet gateway

How to make a VPN client a gateway? Those. it is necessary that requests from the server go through the connected client. Now I have: client.ovpn client dev tun proto tcp remote X.X.X.X 1194 resolv-retry infinite nobind user nobody group…
1
vote
0 answers

Redirect incoming traffic from OpenVPN server to OpenVPN client

I have OpenVPN Server (PiVPN + PiHole) (LAN IP: 192.168.0.200 VPN IP: 192.168.10.1) and I have also OpenVPN client (VPN IP: 192.168.10.2). And I want to if I enter to my browser http://192.168.0.200:84 it's show me the website from…
BugwebCz
  • 11
  • 2
1
vote
2 answers

Openconnect VPN script bash formatting error

Im trying to get openconnect vpn client on mac osx to use this default script, but im getting the following error. /etc/vpnc/vpnc-script: line 730: syntax error: unexpected end of file Script '/etc/vpnc/vpnc-script' returned error 2 I was getting…
Happy Machine
  • 987
  • 8
  • 30
1
vote
0 answers

Unable to connect all the machines in the network after connecting to openvpn server

I have connected to openvpn server, but i can access only the server, not all the machines in the network. I have routed the subnet behind the vpn network in the server config file and did the ip forwarding. My server machine and gateway machines…
Sagar PV
  • 11
  • 1
  • 3
1
vote
1 answer

Custom PAM config: How can I pass username/password parameters to an pam_exec.so module?

I'm using openvpn, a PAM aware app. It has the following useful documentation: For example: plugin openvpn-auth-pam.so "login login USERNAME password PASSWORD" tells auth-pam to (a) use the "login" PAM module, (b) answer a "login" query with the…
David Parks
  • 30,789
  • 47
  • 185
  • 328
1
vote
3 answers

Use OpenVPN within a Python script

is it generally possible to use an OpenVPN connection solely within the scope of a Python script? E.g. have something like this import some_ovpn_library as sol with sol.connection(config=config): # OpenVPN connection is only active for this part…
Bijan Soltani
  • 21
  • 1
  • 3
1
vote
1 answer

Browser closes WebSocket connection with error 1006 one second after it is established when I'm behind OpenVPN

I have small HTTP + WebSocket server hosted on Amazon VPS. Index.html has JS code to connect WebSocket server and exchange data with it. When I connect my server directly using public IP or domain name - everything works fine. However I don't want…
user318750
  • 326
  • 3
  • 7
1
vote
2 answers

iOS - TunnelKit OpenVPNTunnelProvider ProviderConfigurationError

I am trying to create an ios vpn client using Tunnelkit. I am following this tutorial. https://github.com/passepartoutvpn/tunnelkit am able to compile and run the application, but when I try to connect, the app crashes and throwing. Thread 1: Fatal…
Sathya Baman
  • 3,424
  • 7
  • 44
  • 77
1
vote
1 answer

How to deploy OpenVPN EC2 instance via Terraform?

I am trying to set OpenVPN using Terraform but did not find any way to do that. I would like to use terraform to deploy OpenVPN ec2 server. How do I get the OpenVPN AMI id to place on terraform? Or Do I have to deploy a traditional ec2 ubuntu server…
1
vote
1 answer

Azure VNet Point to Site VPN and OpenVPN with Azure AD on MAC

I have setup an Azure VNet and a Point to Site VPN using the OpenVPN tunnel to maintain use of the Azure AD username and password for login. I have sample .ovpn config files but they all require certificates, beyond what is provided by Azure. Azure…
danny26b
  • 463
  • 2
  • 13