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 virtual private network (VPN) client and daemon.

1
vote
2answers
619 views

pfsense tcp connection between openvpn and lan is broken

I am trying to connect openvpn clients into an internal lan, so they can access a http server. pfSense as well as my http server are running on a virtual machine of my home proxmox node. Both are ...
0
votes
1answer
19 views

Limit a VPN server's services to VPN connections only

I have a jump server and I want to put it behind a VPN, I do not want to deploy a separate VPN server and put my jump server behind it. I thought of installing OpenVPN directly onto my jump server and ...
2
votes
1answer
30 views

OpenVPN clients unable to connect to internet

I'm having some issue getting clients to connect to the internet. It can connect to the internal network, but not the internet. Anyone know what might be wrong? Here are my iptables for the OpenVPN ...
8
votes
2answers
2k views

OpenVPN, resolvconf, and DNS domain resolution

While at site1, I need to connect to site2 via OpenVPN. Once connected, the OpenVPN site2 pushes a DNS nameserver and domain search options. This causes all name resolutions for site1 to fail. ...
1
vote
1answer
1k views

VPS: How to forward traffic to devices from public IP

My goal is to set up a public IP for a Android Smartphone which is running an "IP Cam" software. The interface can be accessed in local network on (example) 192.168.0.2:8080, but it has no public IP, ...
0
votes
1answer
1k views

How do I get the network manager applet and install openvn on Kali 2.0 Gnome 3?

I'm attempting to install VPN on my Kali Linux Gnome 3 laptop. I've followed the instructions on this page https://www.privateinternetaccess.com/forum/discussion/18003/openvpn-step-by-step-setups-for-...
10
votes
2answers
16k views

How to make OpenVPN to listen both TCP and UDP ports

I've searched around and the only thing I've found is that "yes, OpenVPN supports connections over TCP", but I haven't found any way to coerce the openvpn server to listen the same port for both ...
6
votes
1answer
2k views

Failed to request VPN secrets #3

I am using Arch Linux with Gnome and I want to use openconnect to connect to an VPN server. I can do this at the command-line without a problem, but I can't do this with Gnome; I get the following ...
12
votes
5answers
24k views

Ubuntu Server 16.04 - OpenVPN seems not to start, no logs get written

I installed and oepnvpn on an Ubuntu server 16.04 by following the following guideline how-to-set-up-an-openvpn-server-on-ubuntu When I start the openVPN server with: service openvpn start it looks ...
1
vote
2answers
4k views

Auto connect and reconnect to VPN on Debian 8

I am searching for a way to always enforce a VPN connection with a chosen profile (ovpn or network manager) whenever I use an internet connection. I want to use OpenVPN and Debian 8. Is there a ...
0
votes
1answer
47 views

How to route all VPN traffic via specific hardware interface?

I have a computer with two eth interfaces and one wlan interface. It is also connected to a VPN (openvpn), so it has a tun0 interface too. Now, I'd like to make sure that all VPN traffic is sent using ...
0
votes
1answer
1k views

OpenVPN with IPVanish on Linux Mint: Connects but no internet access

I'm trying to connect to an IPVanish server on Linux Mint. IPVanish does not provide software for Linux so it has to be done manually. I downloaded an ovpn file from IPVanish here. I then went to ...
0
votes
1answer
25 views

Why is the OpenVPN service stuck at 'activating'?

I tried to set up OpenVPN following this step by step guide. Now I struggle to start the server using sudo systemctl start openvpn@server the output of sudo systemctl status openvpn@server looks like ...
1
vote
1answer
178 views

How to catch conntrack markers correctly?

Server with DHCP (iface eth0 172.5.1.1/24) gives internet via openvpn tunnel(iface tun0 10.8.1.6) to lan clients. I need to mark tcp connections from exact lan client, for example 172.5.1.123 ...
1
vote
1answer
17 views

Writing logs for openvpn in Ubuntu18

I've installed openvpn on Ubuntu18, and it works. I'd like to have a log containing only the times when users connect and disconnect. Found a hint how to do it at [https://github.com/furlongm/openvpn-...
0
votes
0answers
20 views

How to import multiple OpenVPN files to network manager?

I just subscribed for ProtonVPN, and they provided me with a bunch of ovpn servers list. I downloaded all servers ovpn confg files and now I have like 100 of them in a folder in my system. I ...
0
votes
0answers
28 views

routing vpn connection via gateway1 but vpn traffic via gateway2

Situation: network via dhcp internet gateway 192.168.x.1 dhcp server 192.168.x.10 dhcp gateway 192.168.x.2 => this gateway has a permanent vpn tunnel via openvpn to vpn provider, so I want to ...
1
vote
1answer
48 views

alias to turn on/off openvpn

I do have a list of *.ovpn configuration inside the directory of /etc/openvpn/ovpn_tcp/ inside that directory i do have a bash script called go include the following code which will pickup random ...
-1
votes
0answers
12 views

PIVPN with one 4G connection (wlan0) and one landline (eth0)

In my current project I am trying to make a "out of bounds" Raspberry PI(Raspbian Strech) for remote troubleshooting of network equipment. To connect to the remote location in case of an outage of ...
1
vote
1answer
2k views

Port forward to vpn client and from the client forward further to local IP

I have a raspberry pi with raspbian os which is connected to an openvpn server. Openvpn server has public IP and runs Ubuntu. I am able to reach a web application which runs on raspberry pi via public ...
0
votes
0answers
26 views

PiVPN and Stunnel

I've been searching online for a tutorial on configuring stunnel with PiVPN but haven't found anything. Wondering if anyone has had any experience?
0
votes
2answers
34 views

OpenVPN configuration

I have a LAN at home. It is behind a NAT and externally uses dynamic IP addresses. Inside my home LAN, I use 192.168.1.x IP addresses. Further, I have a VPS, which has a IP 185.x.x.x address. What I ...
0
votes
1answer
28 views

Evaluate command based on variable at bash [closed]

I am writing a small script that would choose random file for me from the directory and execute command with this chosen filename as a parameter. It is about choosing random .ovpn file and run sudo ...
5
votes
3answers
180 views

How to restrict (open)VPN client connection to single system user?

I have a multi-user setup (Ubuntu) (simultaneously logged in users on different TTYs). When I connect to NordVPN from one account using nordvpn connect, all users are now connected to the internet ...
4
votes
2answers
235 views

How to set up OpenVPN and Transmission to start at boot on CentOS 6?

I'm trying to set up Transmission with OpenVPN on a headless server running a minimal install of CentOS 6.10, and ideally these would start when I boot the system. I'm able to get everything to run ...
5
votes
1answer
2k views

OpenVPN and routing problem on OpenWRT

My home topology: router1 (192.168.1.1) - D-Link dsl2540u server with static IP available from Internet (ADSL via ppoe). 4 LAN ports. router2 (192.168.1.2) - D-Link DIR-300 with OpenWRT. Plays role ...
4
votes
2answers
4k views

Route to LAN subnet via OpenVPN client

I am trying to route to a LAN subnet that is connected via an OpenVPN client. I am having trouble with the route command - I cannot make sense of it. The OpenVPN link is established and I can ping ...
0
votes
1answer
73 views

How to use nmcli to always connect to vpn when using certain wifi?

So using nm-applet its quite easy to save vpn connection and username+password of the connection and then automatically connect to it when using certain wi-fi connection. So it will always ...
1
vote
1answer
509 views

Centos 6 VPS OpenVPN server failing

I like to run several services from my Centos server and Debian computer from home. Since I had my own domain for my email, I was interested in using my domain name with a VPS static IP to act as a ...
0
votes
0answers
51 views

Wireguard server with active OpenVPN client

I need to run a Wireguard server on a machine with an active OpenVPN client. Clients connected to the Wireguard server would be NATed to the OpenVPN client at 'tun0' and access the internet through ...
-2
votes
1answer
64 views

OpenVPN doesn't seem to run: active (exited), code=exited, status=0/SUCCESS

I'm trying to run OpenVPN on Ubuntu remote server. I've been following this tutorial. As of now, I'm right before Step 3, trying to get "VPN 'server' is running" message. However, when I run service ...
0
votes
0answers
13 views

Local hostnames not resolved after a VPN connection is established

The context: I have a raspberry pi headless torrent box. It downloads torrents to a local SMB share which is mounted with autofs. As I download torrents I also use a VPN. It is set up with OpenVPN ...
0
votes
0answers
55 views

Ping a network hosted in a server from hosts in different subnet

Setup and Environment Host A is Ubuntu VM (GNS3). All other Servers are RedHat. Network Path [Host A(x.x.y.b) --via-- Host B (x.x.y.a)] ----|---- [Host C (x.x.z.c) & Host D (x.x.z.d)] Host A ...
2
votes
1answer
543 views

openvpn route-up script fails when run from systemctl

I have a set of programs that must run through VPN and shouldn't have internet access when VPN is not connected on Arch Linux. I do this by creating a network namespace that would contains VPN network ...
1
vote
1answer
910 views

VirtualBox guest can't reach OpenVPN subnet that is accessible to the host

I believe that my problem is similar to this question on accessing VirtualBox guest via VPN, but not quite. I am trying to go the other way: I am trying to reach a destination that is accessible to ...
0
votes
0answers
23 views

TCP performance for OpenVPN vs delay

I have got some issue in TCP performance depended on delay. My lab schema: CPE --- (p1) Router (p2) --- Server The CPE connects to the Server by OpenVPN using TCP. I know about TCP-over-TCP but ...
1
vote
0answers
363 views

Diagnose very slow Remmina session for VirtualBox VM

I'm using Remmina 0.9.99.1 with CrunchBang VMs on a remote server (VirtualBox 4.3.4 on Debian 7.2.0 x64). I'm using RDP with TLS security, and connect through a UDP-mode VPN. With freshly-installed ...
0
votes
1answer
237 views

Network Manager killing vpn connection

I will start by providing some info: System: Host: arthur-desktop Kernel: 4.10.0-38-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3) Distro: Linux Mint ...
1
vote
0answers
39 views

Create own ovpn file from using certificate and key

I installed OpenVPN on a RPi server. For sample certificates I used the command pivpn -a, as suggested by OpenVPN. But now I want to create my own certificates because I need to insert on them an ...
4
votes
2answers
3k views

Starting SSH server after VPN starts

I am running an OpenVPN server on Ubuntu 14.04 as well as OpenSSH. I have my SSH server configured to bind to an IP address on my VPN interface. Once my machine boots, binding to that IP fails. ...
5
votes
4answers
10k views

How to fix OpenVPN DNS leak

I just subscribed to a VPN provider. I have Xubuntu 17.10, openvpn 2.4.3. After launching the openvpn command I check the IP (fine) and performed a simple DNS leak test: not fine, it shows my ...
4
votes
1answer
980 views

SELinux not allowing read files on ~/.cert

I'm new to Fedora 23 and SELinux. I use an OpenVPN client through NetworkManager. I stored all the files I needed OpenVPN to access (certificate, CA and private key) inside ~/.cert and ran updatecon -...
0
votes
0answers
13 views

How to access to pc connected through router VPN from outside

In my house I've got this kind of setup: A main router (gateway 192.168.1.1) which is connected through SIM 4g to Internet (Router is TP-Link mr6400) A secondary router (gateway 192.168.8.1) which is ...
1
vote
1answer
1k 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 ...
2
votes
1answer
2k views

OpenVPN connects to the Server successfuly but no internet access

I want to setup an OpenVPN Server and after a week of trying day and night (no Linux Knowledge) I was able to successfully connect to the Server using OpenVPN GUI but now that I can Connect there is ...
2
votes
3answers
4k views

OpenVPN using IPv6 on VPS

I'm trying to create an IPv6 tunnel using OpenVPN on Debian Sid. IPv4 is working fine, but I can't get IPv6 to work. I can ping the server and other clients using IPv6, but I can't reach the internet ...
1
vote
1answer
1k views

Openvpn client and server cannot ping each other(Connection established)

I have setup OpenVPN client and server between two VPS. I have a client and server setup, server using 10.8.0.1 and 10.8.0.2 IPs in tun interface, and client using 10.8.0.6 and 10.8.0.5 in tun ...
1
vote
0answers
45 views

Fedora 29 VirtualBox will not use DNS from host VPN

I am running a Windows 10 machine for work (required) and so use VirtualBox to get a Fedora 29 machine so I can run code locally before pushing to production. Our github is behind a VPN and we use ...
1
vote
0answers
92 views

Run a simple ExecStartPost in a forking systemd service

I have a systemd service that sets up my openvpn tunnel. I also have a bash script that forwards a port for said tunnel. I want to have the script run after openvpn starts and I have been able to do ...
0
votes
3answers
908 views

Route certain client through Openvpn tunnel

I have openvpn client running in my centos box which I use as a router for my internal network. I have two interfaces for reach outside world. eth0 - normal internet tun0 - openvpn tunnel I ...