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
3
votes
1 answer

How do I redirect certain traffic through the openVPN tunnel "Split tunnel"?

I have an openvpn server residing in amazon cloud on subnet 172.168.1.0/24. I have another X-ec2 instance on another subnet 172.168.2.0/24. I am able to not route internet traffic through the VPN by removing push "redirect-gateway def1" on the…
Zain Jhan
  • 56
  • 1
  • 4
3
votes
2 answers

Vpn client in xamarin

I want to create a vpn application such as "Touch VPN" or "Hi VPN' How to use xamarin to connect to vpn server using .open files in the background? There are several example source codes in Java But I never found any source code in xamarin c#…
pichSoft
  • 31
  • 1
  • 4
3
votes
0 answers

How to implement openvpn in bitbucket pipelines?

I'm trying to implement an CI tests on bitbucket pipelines . To do so, I need to connect the pipelines to my OpenVPN server to be able to communicate with other client. Here is my bitbucket-pipelines.yml : pipelines: default: - step: script: …
Tobi
  • 31
  • 3
3
votes
0 answers

OpenVPN + Radius authentication how to disconnect users

I'm trying to bring up an OpenVPN service that authenticates users via Radius. The Radius server is made by me so I can play with the code and understand the internals better. Upon a successful login I receive accounting data from the OpenVPN…
Romeo Mihalcea
  • 9,714
  • 12
  • 50
  • 102
3
votes
1 answer

How does Android know that it has to direct allowed vpn application to tun0

This is an internal Android question. I would like to have a clear understanding on what happens when vpn tunnel is established with only specific apps allowed through it using "builder.addallowedapplication() " method. This is similar to how you…
Mike
  • 147
  • 2
  • 16
3
votes
3 answers

Blocking IP's using AWS WAF so that only users connected to a VPN can access CloudFront

Goal: Use AWS WAF to filter out traffic that hits CloudFront so that only users connected to the OpenVPN network can access the web application. OpenVPN assigns any connected user to an IP in the network range of 172.xx.yyy.z/a. I therefore…
3
votes
1 answer

how to encrypt vpnc Xauth password in /etc/vpn/example.cfg file?

when i set up vpnc, i created a /etc/vpnc/example.cfg file so that i don't have to enter everything every time. one of the lines is "Xauth password " where i have to enter it in plain text. is there a way to encrypt it?
kirill_igum
  • 3,953
  • 5
  • 47
  • 73
3
votes
0 answers

How to connect VPN server with our iOS app using swift

I want to connect VPN server with my iOS app. I could not make a connection with the VPN server. I have searched a lot about it but I did not get any solution. Here is my code: import UIKit import NetworkExtension import Security class VPN { …
Deevakar verma
  • 251
  • 4
  • 19
3
votes
1 answer

IPv6 with OpenVPN in Docker

I'm trying to get OpenVPN in a docker container (alpine:3.7) running with IPv6. When the OpenVPN host does not send any IPv6 information, it works fine. When it sends an IPv6 address for my connection, I get the following error: [...] Wed May 30…
Matthias Lohr
  • 1,696
  • 2
  • 20
  • 32
3
votes
2 answers

Connect through openvpn client container from another container

I setup an openvpn client container based on alpine that connects to a openvpn server, don't know where is it. The idea is I want to reach a server is in this vpn network not from the container with openvpn (which I can ping successfully) but from…
RonnieJ
  • 114
  • 1
  • 6
3
votes
2 answers

AWS OptInRequired and Terraform

I'm trying to develop Terraform code for an OpenVPN Access Server, however I get the error: aws_instance.openvpn_srv: Error launching source instance: OptInRequired: In order to use this AWS Marketplace product you need to accept terms and…
pearl
  • 49
  • 1
  • 4
3
votes
1 answer

How to generate openvpn client key dynamically with php and pass variables to shell command?

I want to generate clients key with PHP. When a client key generated it should give me the expiry date of the key. root@zohaib-VirtualBox:/etc/openvpn/easy-rsa# ./build-key client1 Generating a 2048 bit RSA private key…
3
votes
1 answer

Only allow private access to website through VPN

I know this may be very basic, but I have a website on my server that I would only like to be accessed by VPN. I have OpenVPN running on my Windows machine and it is connecting to my server with the VPN. When the VPN connects I can use the VPN's…
Craig Tucker
  • 1,051
  • 1
  • 11
  • 27
3
votes
1 answer

Forgot openvpn admin's password

I had installed open-vpn on AWS ec2 instance but now I forgot the admin password and I can not access to the openvpn web-ui. Is there any way to reset admin's password?
Bhesh Sejawal
  • 558
  • 2
  • 7
  • 22
3
votes
5 answers

How do I kill an OpenVPN connection using Perl?

Is there any way to kill an user OpenVPN connection with a Linux or Perl command?
hamSh
  • 1,163
  • 1
  • 13
  • 27