Stack Exchange Network

Stack Exchange network consists of 174 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 virtual private network (VPN) client and daemon.

-1
votes
0answers
8 views

Linux with two network connections as VirutalBox VM host: Can I exclusively route VM traffic over one device?

I am trying to do something admittedly a bit exotic: I have a Linux box with VirtualBox on it. This Linux box has an integrated network card and a USB WiFi device. In order to test a few things, I'd ...
0
votes
0answers
15 views

Samba shared folder over openvpn very slow - Linux OS

Recently I've installed Ubuntu 18.04 and I've noticed that sharing a samba folder from a Linux server over a openvpn tunnel is very very slow. Tried to avoid using DNS, but still have no results. ...
0
votes
0answers
16 views

OpenVPN bridge gateway stops all traffic

I am not sure if this is a linux or windows issue. I have openvpn set up with a bridge interface that includes tap0 and eth0. I have my client machine (win10) getting its IP through my dhcp server. ...
1
vote
0answers
39 views

Issue using openvpn on Debian [closed]

I am using openvpn. I can connect to the server as a client without hiccups but I can't use the internet. Here's how the config file looks like on the server: **The server is a Raspberry Pi in my ...
0
votes
0answers
13 views

Unprivileged OpenVPN launching

I used the articles at: https://community.openvpn.net/openvpn/wiki/HOWTO#UnprivilegedmodeLinuxonly https://community.openvpn.net/openvpn/wiki/UnprivilegedUser I have some problems when trying to ...
0
votes
0answers
29 views

OpenVPN Server inside VM + VM VPN

How to setup OpenVPN Server inside VirtualboxVM running Debian on Debian Host? At Guest System OpenVPN is running to tunnel all internet Traffic to another VPN-Server. Now I want to setup an OpenVPN ...
0
votes
1answer
25 views

Openvpn's client-connect script is not called

I want OpenVPN to run a script when a client connects, but it seems to ignore my client-connect directive. I am running OpenVPN 2.4.0 on Raspbian. In my server.conf, I have ... script-security 3 # ...
1
vote
0answers
17 views

Unable to add default route via VPN (openvpn)

Initially my routing table looks like this Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG ...
1
vote
1answer
71 views

Client based routing on a gateway

I have a network gateway (Debian) with two interfaces: eth0 and tun0. In general all traffic from all clients is routed through tun0. I would like to change that in the following way: client a‘s ...
0
votes
0answers
11 views

OpenVPN bridging a bridged adapter

I'm running OpenVPN on a virtual server. The virtual server has a bridged adapted from the single physical host adapter. Can I bridge this bridged adapter so VPN clients can get bridged network access?...
0
votes
1answer
24 views

OpenVPN configuring client to use subnet topology results in “inet prefix is expected rather than 10.66.10.6/-1”

Right now whenever I connect to a (commercial) VPN server a tun interface spins up with an inet address assigned to it as well as a peer one (whatever that means). root@mininet-vm:/etc/openvpn# ip -4 ...
-1
votes
1answer
15 views

How to open some port for only OpenVNP clients?

I have a web service on an external server, and an openvpn server on the same machine. I need to open port 80, but only for openvpn clients. In other words, if I do nmap-p 80 server_ip I expect to ...
0
votes
1answer
44 views

Restrict access to 80 port-access only via OpenVPN

Now I have access from outside to 80 port with ownCloud web interface. But I want to get access to it only via OpenVPN connection. I tried to run: # iptables -I INPUT -i eth0 -p tcp --dport 80 -j ...
0
votes
3answers
75 views

UFW is blocking DNS requests through VPN [closed]

I have a very strange behaviour of my UFW on Ubuntu 18.04. I set up basic rules, everything is OK until I connect client to this server through VPN. On the client side ping works fine but nslookup / ...
2
votes
0answers
24 views

Openvpn in docker-not available connection

I run successfully a docker openvpn container: ~# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
1
vote
0answers
10 views

Linux Bonding Driver Mode 0 And Fault Tolerance

I've been testing a bonded network based on Ubuntu Server 16.04 LTS. The far end of the bond is a VM also running Ubuntu Server 16.04 LTS. The two servers are tied together by two OpenVPN tunnels in ...
0
votes
1answer
110 views

Port forwarding openvpn server to client [closed]

I have a OpenVPN server that was deployed on Linode server. My computer's running the software that open port 8089 for client side connect. My computer do not have public ip, so the computer connect ...
1
vote
0answers
31 views

Systemd: start/stop service based on networking connectivity

I've been using a VPN heavily recently and would like openvpn to intuitively connect and disconnect based on whether I'm connected to Wi-Fi (or ethernet). Currently, I have a client.conf in /etc/...
0
votes
1answer
127 views

Options error: Parameter ca_file can only be specified in TLS-mode

Im currently trying to setup an OpenVPN Client on my Raspberry Pi. I keep on getting some error messages related to TLS. The syslog gives me this: Nov 23 08:34:56 raspberrypi ovpn-ersterclient[1370]...
0
votes
2answers
106 views

resolv.conf overwritten every time

I got this drwxrwxr-x 3 root tunnel 100 date and time . drwxr-xr-x 33 root root 860 date and time … -rwxrwxr-x 1 root tunnel 0 date and time enable-updates drwxrwxr-x 2 root tunnel 40 date and time ...
-1
votes
0answers
36 views

How to route only outbound traffic through openvpn server from a Linux machine as a client

I am trying to find a way for routing all outbound traffic or at least HTTP traffic through an openvpn server from linux machine. I have already installed openvpn and tried to run it as follows ...
1
vote
0answers
36 views

How to make tun0 appear after openvpn installation without rebooting?

I am installing openvpn on Ubuntu 18.04. The installation and setup goes smoothly. I start the systemd service and it succeeds. But, there is no tun0 interface in ip a. If I reboot, then tun0 is ...
1
vote
1answer
37 views

How do you tell OpenVPN to run on startup?

I've done these exact same steps on two Ubuntu computers and it works just fine. I copied the exact same foo.conf file (along with a corresponding auth.txt file) into /etc/openvpn/ and it works if I ...
1
vote
0answers
38 views

Allow a regular use to write in /proc/sys/net/ipv6/conf

I am using a fairly cheap VPN service in my Xubuntu 18.04 (VPN created using OpenVPN) and, as many other VPN services, is leaking my IPv6. I thought that maybe, since OpenVPN can run a script when it ...
0
votes
0answers
9 views

Show the openvpn client setup incl. the pushed options

I've an openvpn client connected to a server. Within the local config files I can see most of the setup. But some of the setup is pushed from the server How can I output the full setup of the running ...
0
votes
0answers
59 views

Create openvpn server with IPv6

I'm trying to follow this tutorial to offer ipv6 support to my vpn under openvpn. But I do not understand this passage: Here is the content of client-connect.sh. #!/bin/bash BASERANGE="2a00:...
0
votes
0answers
26 views

OCSERV installation

I am trying to install ocserv vpn on a centos6 OS. After all installation method and configurations, I faced bellow error when attempt to run it: > [root@server ocserv]# service ocserv start >...
0
votes
0answers
22 views

OVPN/OpenVPN Including multiple machines on the client side when using a routed VPN (dev tun)

I'm going to build my own firewall using physical debian machine. This time it's a NAT-by-NAT conifguration until everything works fine. (Not to disturb primary network.) I got a Debian vServer ...
3
votes
0answers
108 views

Why IPv6 connectivity on OpenVPN network failed after short time?

I use OpenVPN TUN network. IPv4 works fine. But I have added support for IPv6. I have a problem with IPv6 connections. IPv6 works fine only for short time. When I ping tun0 IPv6 address on my VPN ...
0
votes
1answer
121 views

OpenVPN how to add route to AWS Load balancer

I have a load balancer in AWS, I want to restrict access in its security group to be accesible only from my OpenVPN server. Now, I would like to use push "route a.b.c.d 255.255.255.255" in server....
0
votes
1answer
31 views

OPENVPN: Problem for setup a VPN supporting IPv6 on linux

I have a problem for setup my VPN on OrangePi(This is a micro-computer same as Raspberry Pi) My project is to configure a VPN with ipv6 on him. So, i have find a project on github, which proposes to ...
1
vote
1answer
178 views

Porting openVPN config to Alpine Linux

I got an openVPN config file from my vpn provider. It worked great on Ubuntu, but on alpine, I got an error. The following lines fail: up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-...
0
votes
1answer
176 views

How to route Client OpenVPN in LAN on Mac OS X OpenVPN Server

I have configured an OpenVPN Server on my Mac OS X High Sierra. I did that using Easy RSA 3.04 which I had downloaded from github, and Tunnelblick to start and stop the server. My LAN network is: ...
0
votes
0answers
112 views

Debian 9 openvpn client connection fails

I have an up2date Debian 9, and an openvpn config file. This file works as it is with the openvpn GUI client on a Windows 10 machine on network x connecting over the internet to the openvpn server. ...
3
votes
2answers
635 views

IP packet with unknown IP version=15 seen

I have a gentoo router with two openvpn instances (v2.4.6, udp and tcp) and every minute I always see this log messages: Sep 12 15:42:50 lowpower2 openvpn[6505]: IP packet with unknown IP version=15 ...
0
votes
1answer
182 views

Remove redundant openvpn config service from Systemd

I used to have a config for openvpn. After upgrading to 18.04 it started behaving differently in relation to systemd, my syslog gets continuously spammed with connection attempts: ovpn-login[5191]: ...
0
votes
2answers
16 views

Configure VPS so only authenticated VPN users can access web server

I am setting up an intentionally vulnerable website to show some security stuff, but I don't want unauthorized people exploiting it. How would I be able to configure my VPS so that only people ...
1
vote
0answers
92 views

How to route traffic from ethernet to a tun device (create a VPNed ethernet port)

I have a Network Video Recorder which is connected to a raspberry pi directly through ethernet, and the raspberry pi is connected to internet through wlan0. I want to route all the traffic from the ...
0
votes
0answers
8 views

need openvpn client configuration suitable for troubleshooting

I'm running an openvpn client and connecting to a commercial VPN provider (PIA). Every so often, that connection stops working. I can resolve the problem by manually restarting my client. However, I ...
1
vote
1answer
158 views

systemd unit for openvpn: how to use config files that end with .ovpn?

By default, the systemd openvpn client unit file assumes all config files end with .conf. Many of my config files end with .ovpn. Changing file name extensions is undesirable in my environment. The ...
0
votes
0answers
271 views

Port Forwarding to OpenVPN client?

My ISP doesn't allow Port Forwarding. So I bought myself a VPS server and installed OpenVPN server on it. I want to port forward ports through this VPS to my OpenVPN client. I have followed many ...
1
vote
0answers
34 views

No internet or LAN on VPN [closed]

I have a home VPN running on a Raspberry Pi 3, it works fine when used with Windows OpenVPN client. On Linux Mint 19 Tara it fails to work. Connection is fine but pinging fails on everything, my local ...
0
votes
1answer
55 views

OpenVPN client: “systmctl stop” timeout, leftover processes

I set up an openvpn client on Ubuntu 18.04 by creating a work.conf file under /etc/openvpn/ I start it with: sudo systemctl start openvpn@work.service When I stop it, sudo systemctl stop openvpn@...
0
votes
2answers
66 views

How to make routing changes permanent

I have the below routing rules to apply once tun0 comes up (which is a openvpn tunnel). These rules help push some clients on my network outside the VPN and direct to the internet. What is the best ...
1
vote
1answer
402 views

Access LAN computers via VPN connection

I am wanting to put a VPN server on one of machines on my LAN and expose this VPN service to the internet. Once a client (laptop) is connected to my VPN service from outside my LAN I want to be able ...
0
votes
1answer
57 views

Network interface routing when using VPN

I want to connect to a VPN but not send all traffic through it. Here is how my network is setup with the VPN redirecting all traffic. This is the default with the vpn config not changed. $ ip rule ...
1
vote
1answer
150 views

OpenVPN or IPtables for split tunnel control?

I have been plugging away but not luck, but from what I understand what I am trying to split tunnel. I have a VPN in place (and working) where all traffic from my LAN heads out to the internet via ...
0
votes
0answers
63 views

Can a non root user change the IP of a network interface?

I want to use OpenVPN with a persistent tunnel interface. I can create this interface with OpenVPN itself and assign it to OpenVPN user/group $ openvpn --mktun --dev tunOV20 --user openvpn --group ...
2
votes
1answer
34 views

How to link a tunX interface to a specific OpenVPN instance?

I known that I can give a specific name to the TUN interface using --dev option, but I didn't and I have now on a router machine something like a hundred client configs. with less clients I was able ...
0
votes
0answers
73 views

openvpn does not enable device

OpenVPN opens tun device, but does not up this, therefore can't add the route afterwards. This command does not up the device /sbin/ifconfig tun0 172.31.0.6 pointopoint 172.31.0.5 mtu 1500 It works ...