Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
46 views

How to add new internet gateway to existing openvpn network?

I have been providing my friends with censor-free internet access through my server via a OpenVPN network. Now that I have more virtual servers at different locations, how can I add them to my network?...
1
vote
0answers
38 views

Forwarding packets across network to OpenVPN server clients

I've been unable to resolve this myself and really need some help as my networking knowledge isn't the strongest. Setup: Flowchart of network I want to be able to connect to the 10.8.0.2 client that ...
0
votes
0answers
277 views

OpenVPN: Some users are having “TLS Error: TLS key negotiation failed to occur within 60 seconds”

I have an OpenVPN server (setup using Pritunl with its default settings), everything's working fine for all users except for some of them (could reproduce it with only one client) not being able to ...
2
votes
1answer
128 views

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

OpenVPN Traffic Control on CentOS 7

I'm trying to give my OpenVPN some bandwidth limitation. I would like for example for each user give 10Mb/s for upload and download. I tried the following answer I found (Automatically Call a Script ...
1
vote
0answers
30 views

Openvpn tun0 loses IP and route

My OpenVPN client setup just stopped working, maybe/likely linked to a recent update of Debian (testing). The end result is that the openvpn daemon looks happy and gives me the right syslog messages, ...
1
vote
0answers
30 views

Route OpenVPN client traffic to a proxy? (iptables magic needed??)

I have an OpenVPN server running on a VPS with OpenVPN client running on my router on my home network. I'm trying to route my clients traffic over a proxy after it reaches the OpenVPN server so my vps ...
2
votes
1answer
276 views

OpenVPN Full Routing Client Issue

I create a server on AWS with OpenVPN. Set it up, through the Admin page, I choose fully routing option and download the .ovpn I add three extra lines to client .ovpn; (I have to use it because ssh ...
1
vote
0answers
43 views

FTP server set behind VPN server

I have a question concerning setting up a FTP server on a VPN connected host. Basically I have a FTP server setup on my machine that's behind a VPN through the VPN providers client. Everything works, ...
1
vote
0answers
30 views

VPN connection to server with public IP that is part of remote subnet

I need to setup a connection between an Ubuntu Server 16.04 LTS running an OpenVPN daemon and multiple new Windows clients (Windows 10 Pro & 8.1 Pro). On the server there is a bridge between the ...
1
vote
1answer
211 views

Easy-RSA/ missing expected CA file

I can't connect to my Easy-RSA VPN server. I can connect using SSH; in the logfiles I read "error=CRL has expired". So, according to instructions found using Google I should run ./easyrsa gen-crl ...
1
vote
0answers
73 views

OpenVPN access server unkown IP addresses

I am seeing random IP addresses in my OpenVPN server logs - 20:38:08 2019 TLS Error: cannot locate HMAC in incoming packet from [AF_INET] xxx.xxx.xxx.xx:45345' 09:14:22 2019 TLS Error: cannot locate ...
0
votes
0answers
189 views

OpenVPN Connection very slow. Server located in Hong Kong, and Client Desktop is in New York

I have a OpenVPN vps server in Hong Kong. The specs is just 1 Core 2.2ghz CPU and 1GB of RAM. The connection is a 100mbit. But when I connect from my desktop in NY, my speed is only 1-2mbit only. I'm ...
1
vote
1answer
581 views

OpenVPN: UDP: Unknown error (code=10054)

I want to set up an OpenVPN Server on a CentOS 7 server. From my ISP, I only have public IPv6 address, the IPv4 is NAT-ed at the ISP, so I decided to configure my VPN to be based on IPv6. I followed ...
1
vote
0answers
161 views

Is it possible for OpenVPN Client to change IP address of “tun” device ignoring “ifconfig-push”?

I have set up static IP configuration for clients connecting to OpenVPN server running on AWS EC2 (CentOS) instance. Purpose of assigning static IP is to allot QUOTA using iptables to every client so ...
1
vote
1answer
63 views

How to bypass/exclude a port on OpenVPN client WITHOUT bypassing all incoming traffic?

I read this answer beforehand, it says: ip rule add from x.x.x.x table 100 ip route add table 100 to y.y.y.y/y dev ethX ip route add table 100 default via z.z.z.z The problem is, this will apply to ...
0
votes
0answers
97 views

OpenVPN without NAT or DHCP

I am trying to setup an OpenVPN server similar to LiquidVPN.com. WIth their VPN server when a client connects it receives the public IP address of the server. All network traffic to the public IP is ...
0
votes
1answer
61 views

OpenVPN leaks IPV6 in Ubuntu but not in android

First of all I would like to say that I am a complete beginner in this topic. I have been trying for several hours to allow my system to connect to my VPN (I have a raspberry pi with the basic ...
0
votes
1answer
125 views

Enforce usage of VPN-provided DNS servers on Ubuntu 18.04

On a vanilla Ubuntu 18.04 headless server, the OpenVPN client is used to connect to a remote network in tap mode. The address, default gateway, DNS servers etc. are provided by a DHCP server on the ...
0
votes
0answers
36 views

Configure networking to select best route for VPN hosts

I have an OpenVPN server and some clients that connect to it, for example: host1 (at location1) host2 (at location2) laptop (my travel machine) Is it possible to configure routing in such a way that ...
0
votes
0answers
33 views

OpenVPN client as gateway to its LAN

My problem is that my work LAN is using mobile internet provider to access internet, so none of the PC's neither our router is accessible from Internet. I'd love to have possibility to connect to ...
0
votes
1answer
60 views

Connecting multiple sites through OpenVPN

I am managing three distinct geographical sites which I would like to connect using a central OpenVPN server. My idea would be to have a network device on each location connect to the OpenVPN server ...
1
vote
1answer
44 views

Resolve specific domain to localhost on Ubuntu and OpenVPN

I have a PC connected to my ubuntu OpenVPN server. what I'm trying to do is making google.com resolve to my IP address instead of Google IP address when I browser google.com on my client pc. ...
1
vote
0answers
39 views

OCserv error: unknown user

I'm on ubuntu 18 and these are the lines causing the issue while starting up OCserv run-as-user = nobody run-as-group = daemon I've tried a lot of other combinations but I'm out of luck
2
votes
2answers
441 views

OpenVPN and routing/iptables

I want to setup an OpenVPN with route on my Xubuntu server (router/gateway/share/dhcp/dns/wifi/switch... all in one). WAN - enp4s0f1 - 77.xxx.xxx.xxx LAN - br0 - 10.0.1.1 VPN - tun0 - 10.0.2.1 I ...
1
vote
0answers
165 views

How to get OpenVPN to listen to tcp/ipv4 and tcp/ipv6?

I am using OpenVPN 2.4.6 x86_64-redhat-linux-gnu. [root@server sysconfig]# cat /etc/openvpn/server.conf proto tcp-server dev tun ifconfig 10.8.0.1 10.8.0.2 secret static.key netstat says it is ...
0
votes
0answers
36 views

OpenVPN Tunnel blocking inbound web connections

I have a server running a OpenVPN client to route all internet traffic via the VPN. I have excluded the local subnet from the tunnel and this is all working well so far. The server also has a ...
0
votes
0answers
36 views

Whitelisting IPs for AWS VPC to bypass VPN

We have a AWS VPC with public and private subnets. And the OpenVPN server is running in a public subnet and its is used to connect to instances in private subnet. Now, we want to whitelist couple of ...
0
votes
0answers
42 views

How can I add (not replace!) a default route upon OpenVPN connection?

When I run sudo openvpn foo.conf I do not yet have a default gateway defined. Once the connection is established, I run sudo ip route add default via X.X.X.X, where X.X.X.X is the local IP of the ...
0
votes
0answers
28 views

Routing trafffic from vpn tunnel source to other interface

We have five interfaces in the server. I would like to route traffic from IP 10.8.0.150 behind tun0 to 10.130.219.68 behind interface em2. I have enabled port forwarding and done IP tables rules ...
2
votes
0answers
46 views

Mariadb over VPN from a sql-IDE times out, but works with mysql CLI client, why?

This is a situation where I don't have any clue on what's going on : I configured an OpenVPN using a PKI, everything seems to work, except this: Dbeaver and Mysql-Workbench hangs after a "succeed ...
0
votes
0answers
33 views

pfSense: OpenVPN P2P with static IPs

I am in the process of migrating a plain OpenVPN p2p config to pfsense, so that after a DNS switch all peers can seamlessly connect to the pfsense instead of the old server. But i have some problems. ...
0
votes
1answer
102 views

Route all traffic through OpenVPN hosted on EC2

I need to setup our openvpn server to allow all traffic togo through it when we connect(as we need to whitelist its public IP address). The problem I'm having is that once I start to route all traffic ...
1
vote
1answer
73 views

Fixing Cisco Umbrella Root CA Filtering on OpenVPN

I have a personal VPN running OpenVPN 2.3.10 on ubuntu 16.04 that I installed following this guide. It has worked with a few hiccups over the last two months of intermittent use. Yesterday, I ...
0
votes
0answers
136 views

OpenVPN auth-ldap cannot find user in a group, but ldapsearch can find it

I can search for a user without issue: ldapsearch -h ldap.my.server.name -b "cn=vpnusers,ou=groups,dc=example,dc=com" -x "memberUid=myusername" Results: # extended LDIF # # LDAPv3 # base <cn=...
0
votes
0answers
294 views

OpenVPN client connection errors with “Error: Nexthop has invalid gateway”

I'm trying to connect to a private internet access vpn with openvpn. When I try to connect I get the following output: Wed Dec 5 19:10:37 2018 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] ...
0
votes
1answer
137 views

Connect over SSH to server running OpenVPN client with ip tables: “Nexthop has invalid gateway”

I tried to follow the solutions listed here for being able to continue SSH connections after connecting to an openvpn client: https://www.linode.com/community/questions/7381/openvpn-client-connected-...
11
votes
2answers
2k views

OpenVPN unable to disable encryption

Both in server and client config I have set: cipher none auth none Following this advice I am also using UDP port 1195. When I launch server and client I get following warnings: Tue Dec 4 12:58:...
0
votes
1answer
50 views

OpenVPN exits when network connectivity is restored

I'm using OpenVPN as a daemon and when I lose the internet connection, OpenVPN waits for 2 minutes before it tries to restart each 5 seconds. This is as I want it to behave. However when the internet ...
1
vote
0answers
78 views

Docker : Route trafic from openvpn server to openvpn client

Networking is still black magic for me and i'm trying to route the traffic from my openvpn server in docket to my openvpn client also in docker. I'm trying to achieve this : My computer --> VPN --> ...
1
vote
1answer
53 views

route traffic from VPN server LAN (cloud) peer to VPN client

I have set up a Google Cloud deployment roughly configured as such: node B, which is at address 10.0.0.6 and default route is through 10.0.0.1 node V, which is a VPN server, on same subnet at 10.0.1....
0
votes
1answer
227 views

Openvpn execute script on client-connect with restricted user

I am trying to execute a command on my openvpn-server every time a client connects. I have an user openvpn that was created by using adduser --system --shell /usr/sbin/nologin --no-create-home ...
1
vote
0answers
20 views

OPEN VPN ERROR windows

I have a problem from many days. I hope that someone can help me. I have Windows 7 and I work with OPENVPN on three environments. On two I work correctly but for one VPN environment I cannot work. ...
0
votes
1answer
199 views

OpenVPN use another port if default is blocked

I have two OpenVPN servers listening on two different ports. The first one, which the client should try to connect to, is listening on default port 1194 UDP. The second one, used if networks have ...
1
vote
0answers
37 views

Curl only uses specified OpenVPN interface if ran as root

I am using Ubuntu Server 18.04.1 LTS (Bionic Beaver). I run OpenVPN with redirect-gateway disabled because I don't want traffic to use it by default, only one specific application. This is the command ...
0
votes
0answers
65 views

OpenVPN issue when client tries to connect: read UDP: Connection reset by peer (WSAECONNRESET) (code=10054)

UPDATE: Here's the output when I try to access OpenVPN using my Verizon router instead of my homemade Ubuntu router. It doesn't work immediately after I plug in the router, but in about a day or so, ...
0
votes
1answer
48 views

OpenVPN Client Shared Network Routes

Currently our OpenVPN Community Edition server (version 2.3.11 running on RHEL) client config files are stored in /etc/openvpn/ccd. We want to control which network routes each user gets depending on ...
1
vote
0answers
53 views

How to diagnose UDP connectivity issues?

I have an OpenVPN connection which was initially over UDP. After some time I started to have serious hiccups when running ssh inside that tunnel. As seen from inside the tunnel, ssh packets were lost,...
1
vote
0answers
211 views

Possible MTU issues over OpenVPN causing SSH to fail

I recently moved away from using OpenVPNAS to use the community edition so I can have more concurrent connections without a license. I have the server away from me but I am on a WiFi network with two ...
0
votes
0answers
62 views

OpenVPN DNS resolution issue on router (EdgeOS)

I've been using OpenVPN client over vtun interface and all works as expected only if the remote VPN server name (in the OpenVPN config) is the IP address. When I use the DNS name as part of the ...