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.

3
votes
1answer
919 views

Not sure what starts this systemd unit file

So I've been looking at the openvpn configuration on my Debian 9 based server and found something that I cannot explain in the systemd unit files for the openvpn daemon. The daemon itself is starting ...
2
votes
1answer
5k views

How to start 2FA-using OpenVPN with systemd?

I have openvpn config that users 2 factor authentication. If I start it manually, by running: /usr/sbin/openvpn --writepid /run/whatever --cd /etc/openvpn/ --config /etc/openvpn/work.conf it asks ...
18
votes
2answers
32k views

ssh into a server which is connected to a VPN service

I have a virtual private server, which I would like to run a web server while my server is connected to a VPN service When the VPN connection to my provider is not up, I can do anything I want with ...
21
votes
4answers
52k views

Port forward to VPN Client?

I've run into a bit of a puzzle and haven't had much luck finding a solution. Right now I am (sadly) connected to the net via Verizon 3G. They filter all incoming traffic so it is impossible for me to ...
1
vote
1answer
4k views

Starting openvpn client as daemon - in debian

[Unit] Description=Simple Openvpn tunnel [Service] Type=simple ExecStart=/usr/sbin/openvpn --config /etc/vpn/config/myclient.ovpn --daemon [Install] WantedBy=multi-user.target I have this service, ...
14
votes
1answer
29k views

Configuring OpenVPN to use Firewalld instead of iptables on Centos 7

I need to configure OpenVPN on Centos 7 using firewalld. I used iptables on Centos 6.5 and only had to add the following lines to /etc/sysconfig/iptables: -A POSTROUTING -s "10.0.0.0/24" -o "wlan0"...
10
votes
3answers
6k views

SSH session through OpenVPN cuts off / locks up after a few lines

I have a large number of identical fanless PCs running debian 6 (ARM). Most of these are connected via comcast and work ok. There are some that are connected to 'WiMax' modems and are having ...
24
votes
7answers
83k views

Using OpenVPN with systemd

Ok, so I've been searching the web for solutions to this problem with no answers seeming to work for me. Hopefully someone can help me. I'm only trying to configure the OpenVPN Client. I'm running ...
7
votes
1answer
18k views

Settings when using a bridge

I have a bridge set up between my physical Ethernet interface, eth0, and the virtual interface for OpenVPN, tap0. The bridge has an IP address, and the machine can be contacted on that IP address from ...
15
votes
4answers
7k views

Feed all traffic through OpenVPN for a specific network namespace only

I am trying to set up a VPN (using OpenVPN) such that all of the traffic, and only the traffic, to/from specific processes goes through the VPN; other processes should continue to use the physical ...
11
votes
4answers
6k views

port forwarding to application in network namespace with vpn

I was able to set up a network namespace, establish a tunnel with openvpn and start an application that uses this tunnel inside the namespace. So far so good, but this application can be accessed via ...
0
votes
2answers
1k views

How to setup NordVNP Nameservers for VPN + non-VPN use in NordVPN?

I am trying to setup my VPN connections of NordVPN such that I can use internet without VPN nameservers and internet with VPN. Code in /etc/resolv.conf setup by the official NordVPN instructions in ...
20
votes
1answer
127k views

OpenVPN: Push a route to client with a different gateway

I would like my OpenVPN server to push a route down to the client with a different default gateway. Specifically, my OpenVPN server has an internal IP address of 10.0.0.1, and I would like it to ...
13
votes
1answer
15k views

Routing public ipv6 traffic through openvpn tunnel

What I'm trying to do is to route IPv6 traffic through a vpn tunnel. That way, I should be able to use IPv6 in a network that doesn't support IPv6. I have a VPS which has an IPv6 block assigned. Part ...
10
votes
1answer
9k views

how to understand the routing table on an OpenVPN client

I just setup the OpenVPN and it is working as expected. However, the routing table of the client is confusing me to no end. Here is the route table: # route -n Kernel IP routing table Destination ...
10
votes
1answer
17k views

Use service or systemctl to control openvpn daemon on boot?

I'm working on a debian-based system and am still learning about systemctl vs service, but am trying to use my openvpn configuration as a use-case for working through this. In my current setup, I'm ...
6
votes
2answers
2k views

OpenVPN CLI for killswitch or connection fallback prevention

I'm using OpenVPN via command line to connect to my VPN on my current Linux distro since there is no GUI available (which had a killswitch checkbox). My problem is, I can't find any way to add a ...
2
votes
2answers
2k views

Cannot rename resolv.conf file as root

I am trying to activate NordVPN CyberSec by completing the following instructions in Debian 9. I should be able to do the changes as root and with sudo like described for Ubuntu in the thread Should ...
1
vote
2answers
1k views

OpenVPN : protect your clients key/cert/conf from being stolen?

I have configured an OpenVPN install. Mode: multiclients 1server. Clients are raspberries. I note how easy it is to steal a rasp, and look in HDD to get key+cert+conf. Copy it on your laptop, and ...
5
votes
1answer
2k views

Debian CLI torrent program through VPN

Has anyone successfully set up a CLI-only (no web UI's!) torrent client that can tunnel all of its traffic through a VPN? (Either by sending all traffic through a particular interface or a SOCKS proxy)...
4
votes
0answers
224 views

openvpn route-up script no mount permissions

I'm trying to mount a couple of nfs shares after my openvpn tunnel is up. Previously this worked on ubuntu 12.04 and ubuntu 14.04. I made a clean install with ubuntu 16.04 and can't get it to work. ...
3
votes
2answers
417 views

Is data decrypted and re-encrypted by the OpenVPN server when sent between clients?

We just created a cluster of 12 nodes and wanted to have OpenVPN for many of the communications need to be 100% secure between each computer (we do not have access to a 100% secure/private environment ...
2
votes
0answers
186 views

debugging iptables when tunneling one VPN through another

I seek to tunnel one SSL VPN (F5, running on my debian laptop==client) through another (OpenVPN, running on a debian linode==server), but lose all client networking (including, e.g., ping) after the ...
2
votes
3answers
541 views

Establish a connection with OpenVPN on Raspbian

I am trying to establish a VPN connection on a Raspberry Pi 3 with Raspbian. But I cannot make this work. I am using VPNBook and I downloaded the .ovpn file in order to use OpenVPN. Here is the ...
2
votes
1answer
1k views

Redirect secondary network interface traffic along with port forwarding to tun0 (OpenVPN) using iptables

I have a NAS server which I should do port forwarding for it in order to make its services accessible from internet. However my ISP is blocking ports, so I've managed to buy myself a cheap Ubuntu VPS ...
0
votes
2answers
577 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 ...
7
votes
1answer
2k views

SELinux re-labeling problem while attempting to run OpenVPN

I'm trying to run OpenVPN under Fedora 19 with selinux (selinux-policy-targeted) in enforcing mode, and I'm running into an AVC I'm not entirely sure how to handle. Starting OpenVPN from the command ...
4
votes
2answers
2k views

Installing OpenVPN to replace Cisco VPN because Cisco will not work with the kernel I am on or downgrade instead?

I had difficulties installing Cisco5.0 VPN on my Ubuntu 10.04 LTS. I asked for assistance in this question: link to previous question. The answer is that this Cisco program will run on only older ...
4
votes
2answers
7k views

Amazon AWS (Amazon AMI) installing OpenVPN

I'm trying to set up OpenVPN on AmazonAWS. I'm pretty new to Linux so I followed a tutorial. I ran yum -y install openvpn and I received a message saying it was successfully installed. The next step ...
3
votes
1answer
2k views

Accessing VirtualBox guest via VPN

I've searched and tried a few suggestions but I haven't been able to get this to work, yet... My host is running Ubuntu. I installed VirtualBox, created a host-only adapter, set the host IP to 192....
3
votes
0answers
379 views

systemd and OpenVPN woes after an Ubuntu upgrade

After updating a VM from Ubuntu Server 14.04 LTS to 16.04 LTS OpenVPN stopped working and I would appreciate help understanding why. Using systemctl status I could see that OpenVPN could not create ...
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 ...
2
votes
1answer
757 views

Starting additional OpenVPN connection under systemd

I have a couple of OpenVPN connections to various servers that are autostarted when I log into my laptop. Other connections, to production servers, have to be set up manually. Until recently I ran ...
2
votes
0answers
215 views

Route wireless LAN through OpenVPN

I am trying to set up my home server to act as an OpenVPN gateway so I can connect to my VPN from any device without installing special software of them. My server is running Ubuntu 14.04. The host ...
2
votes
2answers
170 views

Open VPN calling a script: Unrecognized option: [AF_INET]

Netgear R7000 Router Tomato v1.28.0000 -2017.2-kille72- K26ARM USB AIO-64K I could do with some help debugging my script. Goal: retrieve forwarded port number from VPN API JSON, pass port number to ...
2
votes
1answer
2k views

Passing the “--float” option to OpenVPN client from NetworkManager

NetworkManager on Fedora14 doesn't support the "--float" parameter of OpenVPN client. Are there any workarounds to connect with NetworkManager to an OpenVPN network using the --float option? Or are ...
1
vote
3answers
4k views

“E: Sub-process /usr/bin/dpkg returned an error code (1)” when I try and install OpenVPN. What is this?

Whenever I try and install OpenVPN on My Debian x86 Minimal VPS I get that error. Here is the full code if that helps: root@fadvps:/# sudo apt-get install openvpn Reading package lists... Done ...
1
vote
1answer
1k views

multiple user-types/access-rules for OpenVPN on CentOS 7 and firewalld

How can I define separate roles for users and administrator in OpenVPN running on CentOS 7 server? Specifically, the users must only be allowed to https, while the administrator must be allowed to ...
1
vote
1answer
1k views

OpenVPN Server does not reply to Client ping

An OpenVPN client seems to initialize on a CentOS 7 client virtual machine. However, the response from the server is not clear when the client sends a ping. Specifically, ping 10.8.0.0 from the ...
1
vote
1answer
3k views

OpenVPN port forwarding without router forwarding?

I would like to setup an OpenVPN server with port forwarding on my VPS, because I can not forward ports in my home router. The general question is, if it is even possible to bypass router port ...
1
vote
1answer
6k views

Trouble connecting to VPN using network-manager, while command line works

If I try to connect to my VPN using Network Manager, it fails, and /var/log/syslog reads: Dec 4 17:43:25 zepto nm-openvpn[1696]: OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [...
1
vote
0answers
476 views

Unable to surf internet with VPN on OpenBSD

I am using OpenBSD 5.7-amd64 with the latest patches applied. I downloaded and installed OpenVPN (package version: openvpn-2.3.6.tgz) available for OpenBSD 5.7 using the following command: sudo ...
1
vote
1answer
779 views

SCP reproducably breaks SSH pipe [duplicate]

I'm trying to copy some certificates onto my server using scp. $ scp ./cert.* sshuser@192.168.0.42:/tmp/ cert.crt 100% 2386 0.1KB/s 00:18 packet_write_wait: Connection to 192.168.0.42 port ...
0
votes
1answer
2k views

How do I route only outgoing traffic over an openvpn client?

I want to route all traffic from computer_X over the vpn client except outgoing traffic (I can also install a vpn-server on the client if that makes it easier). Incoming connections, such as requests ...
0
votes
1answer
76 views

Route more traffic through VPN

I am using openvpn to connect to a VPN server, with the following configuration: remote openvpn.vpn.domain.tld port 1194 proto udp dev tun client auth-user-pass login.conf keepalive 10 60 After ...
0
votes
2answers
1k views

Port forwarding using VPN client

I've already looked here and believe this is on the right track, though I still can't get it to work: Port forward to VPN Client? I have a vps, and on that vps I'm using openVPN. I have a connection ...
0
votes
1answer
2k views

ip6tables allow IPv6 traffic from OpenVPN through my VPS

I've established a fully working IPv4 OpenVPN setup and wanted to go one step further and experiment with setting up IPv6. My VPS server does not get a native IPv6 block but does have a 6in4 tunnel ...