Questions tagged [openvpn]

OpenVPN is a free and open source software VPN solution. It allows secure point-to-point or site-to-site connections with routed or bridged configurations and remote access facilities.

OpenVPN is a free and open source software application that implements VPN techniques for creating secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It uses SSL/TLS security for encryption and is capable of traversing network address translators and firewalls.

It's architecture is build upon 4 principles:

  • Encryption
  • Authentication
  • Networking
  • Security

More info is to be found on the Open-Source site of VPN.
A very thorough tutorial can be found on Shorewall.

3274 questions
7
votes
6 answers

What's the advantage of OpenVPN over SSTP?

If considering Windows only environment, what's the advantage of introducing OpenVPN as the company VPN service, instead of Windows built-in protocols? Especially the new SSTP protocol already overcome the one of the weakness of PPTP, which may not…
Jose
  • 147
  • 2
  • 3
  • 8
7
votes
2 answers

Ubuntu 20.04 Networkmanager OpenVPN: accept pushed DNS but don't route all traffic to tun interface

I am trying to get some Ubuntu 20.04 clients at work to connect to a new OpenVPN server provided by our new server provider. The goal is to route only certain traffic into the tunnel (the corresponding routes are pushed by the OpenVPN server) and…
Valentin
  • 141
  • 1
  • 7
6
votes
5 answers

OpenVPN with Active Directory integration

Is anyone successfully running OpenVPN with Active Directory integration? Are you using the openvpn.net or the openvpn.net/opensource version of OpenVPN? Any tips, tricks or gotchas or did it "just work?" (yes, I've seen this How To but sometimes…
Chris_K
  • 3,444
  • 6
  • 43
  • 45
6
votes
2 answers

OpenVPN how to route Internet traffic through a client

My use case: I want to route all Internet traffic from machine B through machine A. However, I cannot simply install OpenVPN server on machine A as machine A is behind layers of NATs/firewalls I don't control. My current solution is to install…
Roc W.
  • 207
  • 2
  • 7
6
votes
2 answers

OpenVPN reconnect fails, manual restart works

I have set up an OpenVPN server on an Azure virtual machine. For the setup I used the script from https://github.com/Nyr/openvpn-install. I then connect to the server using sudo openvpn --config client.ovpn this works perfectly. I then disconnect…
jakobht
  • 61
  • 1
  • 3
6
votes
0 answers

Run openvpn inside docker and use as gateway for internet for other networked devices

I am trying to run tunnel all my network traffic on my LAN via an OpenVPN client running inside a docker container. My router and default gateway is running on 10.10.10.1 I have OpenVPN running on in a docker container with its own IP and all ports…
mrwooster
  • 243
  • 3
  • 7
6
votes
1 answer

OpenVPN 2.4 + Google Authenticator = authentication failure

We have a corporate VPN server running OpenVPN 2.3 on an AWS instance with Ubuntu 16.04 Xenial. The server has been configured using an Ansible playbook. I'm planning to upgrade to Ubuntu 18.04 Bionic, which also upgrades OpenVPN to version 2.4…
Vlad Nikiforov
  • 453
  • 6
  • 15
6
votes
3 answers

OpenVPN + iptables / NAT routing

I'm trying to set up an OpenVPN VPN, which will carry some (but not all) traffic from the clients to the internet via the OpenVPN server. My OpenVPN server has a public IP on eth0, and is using tap0 to create a local network, 192.168.2.x. I have a…
Mikeage
  • 2,741
  • 6
  • 26
  • 37
6
votes
1 answer

Cannot connect to OpenVPN server under Ubuntu 16.04

I'm trying to connect to a VPN server. I'v got client.ovpn from my system admin. When running: sudo openvpn --config client.ovpn I'm getting Initialization Sequence Completed after few seconds, but my connection isn't working. trying to - ping…
Arnon
  • 163
  • 1
  • 5
6
votes
2 answers

OpenVPN reconnect after server restart

I am looking for a way to keep a VPN tunnel alive. I have an OpenVPN server and some clients which only have access through the VPN. Sometimes, I need to restart my OpenVPN server. When I do that, all my clients lose connections and won't…
alexandgu
  • 85
  • 1
  • 1
  • 8
6
votes
3 answers

Port forwarding with OpenVPN

Set up an openvpn server but having trouble getting ports forwarded to the client. Below is what I am trying to do: WAN: 123.45.67.89:4444 -> [OpenVPN Server] -> CLIENT: 192.168.1.10:4444 Seen many different answers on how to do this but no matter…
Red Spider
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Connect to VPN in Windows 10

Until yesterday I used a Windows 7 Pro and OpenVPN to connect to a VPN. In the OpenVPN config folder I had: ca.crt client.key connection.ovpn Due to some hardware failure I was forced to buy a new system that came Windows 10 Home pre-installed. In…
VMC
  • 163
  • 1
  • 4
6
votes
4 answers

openvpn client override default gateway for vpn sever

When openvpn client connects to a vpn server it creates a route for server ip with old default gateway. How can I tell openvpn not to use old default gateway but use my provided custom gateway ip. I.e. when I have vpn server in another vpn network…
igor
  • 173
  • 2
  • 2
  • 9
6
votes
2 answers

OpenVPN - how to stop public traffic routing through vpn server?

I have set up an OpenVPN server for access to my work LAN. It appears that all traffic routes through the vpn server when it's connected but I only want LAN traffic to go to it. How can I stop this? Specifically, I want only a single website with a…
markhorrocks
  • 513
  • 3
  • 10
  • 26
6
votes
2 answers

Push DNS for only a domain OpenVPN

I have an OpenVPN server to access an Amazon VPC. I have a bind DNS on that same VPN server for solving local names (say *.local.example.com) and for everything else, bind uses forwarders as google DNS. My problem is that I would like to avoid…
Bamse
  • 105
  • 1
  • 3
  • 9