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
2
votes
0 answers

OpenVPN loses connection after some time

I'm running openvpn through this command: sudo openvpn --config vpn.ovpn which works. I can ping several websites. After a while, I cannot ping anything anymore, including ip addresses. I can still ping an internal ip. The openvpn command is still…
TheChosenOne
  • 181
  • 1
  • 1
  • 8
2
votes
1 answer

Chocolatey returns errors when installing openvpn

As the title describes, choco install openvpn returns the below error; ERROR: Unable to import PGP key 'C:\ProgramData\chocolatey\lib\openvpn\tools\openvpn_public_key.asc' in the temporary keyring…
2
votes
2 answers

AWS Client VPN can connect but cannot access VPC resources

I've configured AWS Client VPN so that I can successfully connect using mutual authentication (certificates) and I can access the Internet. Still, despite following manuals, I cannot access resources in other subnets in the very same VPC. I would be…
Jan Wilczak
  • 89
  • 1
  • 4
2
votes
1 answer

No rule needed to make target .moc

I am trying to turn ovpn3's ovpncli example into a class that derives from QObject. I'm unable to turn the source file into a separate interface (.h) and implementation (.cpp) file. To make the MOC happy, I've put #include "openvpn.moc" at the end…
Chase
  • 95
  • 11
2
votes
0 answers

OpenVPN server with internal DNS nameservers

I have a OpenVPN 2.4.6 x86_64-redhat-linux-gnu running on Centos 7 AWS ec2 instance. I also have 2 internal company DNS nameservers that I can query internal hostnames from (working fine) Whenever employees connect to our subnets via OpenVPN, I want…
perfecto25
  • 772
  • 9
  • 13
2
votes
0 answers

OpenVPN stops working after Calico enabled (networkpolicy for nodes option in GKE)

I've enabled networkpolicy for nodes to manage traffic inside my cluster and noticed, that OpenVPN stops working after I applied this option, other things works fine, same as if I login to openvpn pod and try to access external network, applying…
2
votes
1 answer

Cloud DNS with OpenVPN not resolving on client

I'm trying to use Google Cloud Platform's Cloud DNS to resolve internal IPs of Compute Engine instances by DNS from my local machine. I was able to setup an OpenVPN server on an instance by following this guide:…
2
votes
1 answer

How to configure OpenVPN for AWS VPC Peering with single private in 1st and single subnet in 2nd VPC?

I've just installed OpenVPN from AMI Marketplace in my account and connected via LDAP to AWS Simple AD. To start with, here are the details below: Bastion Host VPC Name: Bastion-VPC ---> Has single public subnet VPC ID: vpc-01000000000000000 CIDR:…
Sanket Tarun Shah
  • 637
  • 10
  • 28
2
votes
1 answer

Run a VPN client on a remote website

I have been researching this for day and I haven't been able to find the way to do this. I am building a react app, running express at the backend, that needs to access some data in a remote database that lives inside a VPN. At the moment the app…
Claudio
  • 92
  • 2
  • 11
2
votes
1 answer

How to route traffic from one container to another in docker compose

I have this docker compose. I would like to route all traffic from app container through openvpn container without changing anything in host server. Is it possible? version: '3' services: openvpn: image: openvpn networks: - net …
mmdc
  • 1,677
  • 3
  • 20
  • 32
2
votes
3 answers

Unable to install OpenVPN on macOS - configure: error: lzo enabled but missing

I'm trying to install OpenVPN on macOS High Sierra I have cloned the github repo: git clone https://github.com/OpenVPN/openvpn And switched to the latest stable branch: git checkout origin release/2.4 But when I tried to build the project…
freedev
  • 25,946
  • 8
  • 108
  • 125
2
votes
1 answer

Start OpenVPN from Java application

Is it even possible to start OpenVPN trough Java application? If it is possible what is the best way to do it so it's cross-platform and works on all platforms that have OpenVPN installed.
TheKarlo95
  • 1,144
  • 9
  • 17
2
votes
1 answer

Bash script to automate a VPN from vpnbook.com

I wrote a bash script that reads a username and password from www.vpnbook.com/freevpn and then cleverly automates the vpn. Following is a code segment. I want the Stack Community to hide my xterm -e -hold ./Overflow.sh I have tried nohup and…
ASK Arjun
  • 111
  • 1
  • 18
2
votes
2 answers

Bash scripting to login to VPN automatically

I am very new to Bash scripting, and am trying to log in to my school's VPN server using my Raspberry Pi. All I have right now is a file called login.sh, which has this in it: #!/bin/sh sudo openconnect vpn.ucr.edu/engineering So I get this to run…
Mo_S
  • 29
  • 1
  • 3
2
votes
2 answers

Reconnect after connection closet with openvpn

I'm working through a vpn which is under an unstable connection, so I developed the following script that allows a reconnection if any intermittency in connection with ovpn happens. #!/bin/bash export…
franvergara66
  • 10,524
  • 20
  • 59
  • 101