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

Secure duplex machine-to-machine tunnel - are WebSockets for me?

I have a (Java-) application on many distributed embedded devices talking to my server. The communication consits of HTTP requests, started from either side and is currently secured by building a openVPN tunnel. This works great and has the…
Philipp
  • 4,659
  • 9
  • 48
  • 69
2
votes
1 answer

apache2 : how to allow access from a file

I would like to restrict access to a folder according to some IPs. I already know how to do that by Order Deny,Allow Deny from all Allow from 123.123.123.1 # IP 1 Allow from 123.123.123.2 # IP 2 …
Gepeto
  • 306
  • 1
  • 2
  • 12
2
votes
0 answers

How can I get the status?

Is there any possibility to get the status of the openvpn-gui, weather it is working or not? I tried it with: Process.GetProcessesByName("openvpn").Length But this is always 0, if there is no connection. I can click the EXE, then I got a red symbol…
MoaByter
  • 21
  • 2
2
votes
1 answer

read() on a NON-BLOCKING tun/tap file descriptor gets EAGAIN error

I want to read IP packets from a non-blocking tun/tap file descriptor tunfd I set the tunfd as non-blocking and register a READ_EV event for it in libevent. when the event is triggered, I read the first 20 bytes first to get the IP header, and…
misteryes
  • 2,167
  • 4
  • 32
  • 58
2
votes
1 answer

OpenVPN: route all except local network

So, I have a OpenVPN proxy and this configuration file: dev tun0 proto tcp remote 0.1.2.3 443 client nobind tun-mtu 1500 tun-mtu-extra 32 ca ca.crt cert user.crt key user.key tls-client tls-auth ta.key 1 auth MD5 cipher BF-CBC…
mixaill
  • 57
  • 1
  • 1
  • 7
2
votes
2 answers

Building icsopenvpn

I have some issues in building ics-openvpn project. When I deploy the app on the device and try to import a .ovpn file, I get cannot find minivpn. I think this error is related to an error during the app building. I've downloaded android NDK and set…
user1071138
  • 656
  • 3
  • 12
  • 30
2
votes
3 answers

Pause a batch file until a host is reachable (using ping)?

I'm looking to add some functionality to a batch file that I've been writing; essentially what happens is I dial up a VPN connection using openvpn and then continue to mount a network drive as well as many other things, what I'm looking to do…
Kane Charles
  • 379
  • 3
  • 10
  • 19
2
votes
2 answers

How do I programmatically disconnect an OpenVPN connection?

I am creating a WinForms application to start and stop an OpenVPN connection on Windows. I am trying to achieve the same functionality as OpenVPN GUI for Windows (http://openvpn.se/) provides but using my own .NET based UI. I am starting the…
hitec
  • 1,207
  • 4
  • 14
  • 21
1
vote
3 answers

openvpn error: TLS Error: TLS key negotiation failed to occur within 60 seconds

I've got a problem on implementin openvpn So I'm here and hope some one could help me the story: I've installed openvpn server on a ubuntu server VPS and I've used the tun point-to-point instead of tap bridge. there is no error caused by miss…
user1025749
  • 19
  • 1
  • 1
  • 2
1
vote
0 answers

How can I connect to to my OpenVPN server with .ovpn file in electron js?

I have an .ovpn config file with a built-in username and password that was uploaded to a server through my API. While I obtained this file via the API, I now need to use it in conjunction with a username and password entered into text fields. My…
1
vote
0 answers

OpenVPN inside docker container under WSL

I have Windows OpenVPN server running at 10.8.0.1. I start WSL and inside WSL2 (Ubuntu) I run docker image via: docker run --gpus all --privileged -p 1777:1777 -p 1778:1778 --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 -it --rm…
Martin Perry
  • 9,232
  • 8
  • 46
  • 114
1
vote
0 answers

Get "Error: command failed: return error code 1" in C# VPN app with openVPN

I am trying to learn and make a VPN app with WPF C# using my own OpenVPN server hosted on AWS VM instance. But when I try to do it with my project I get the error 2023-07-18 14:49:27 OPTIONS IMPORT: --ifconfig/up options modified 2023-07-18…
1
vote
0 answers

How to connect my guacamole docker container to my client OpenVPN using tun0 network adapter?

I've used docker to deploy Guacamole and I've installed OpenVPN as a client on my server Ubuntu 18.04. I'm trying to get the docker network guacnetwork_compose to have a connection to my VPN network adapter tun0 because I want to access to other…
1
vote
0 answers

Using Node JS project as a VPN service

I know it's very uneccessary but i want to learn it is possible or not. Can i connect to my Node js project to use like a proxy, like a vpn? I can't access server shell of node js project so i can't setup openvpn or something. I want to connect my…
1
vote
1 answer

Can't get Golang library to return anything but nil to controller

Golang toddler here, so I'd imagine I'm missing something obvious. After experimenting for a couple of days though, I decided to reach out for some help. :-) The code I'm posting is working, except for the situation when a user requests a new client…
bnhf
  • 41
  • 4