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.

4
votes
0answers
738 views

OpenVPN stops after a couple of minutes, seems to hang all system networking

I'm trying to create an OpenVPN connection. My colleagues using Windows have received a self-extracting executable that sets up everything, but I could recover the .ovpn and key files from their ...
4
votes
0answers
376 views

socat gives error (read(6, 0xf97acc0, 8192): Permission denied)

I'm trying to use socat as a port mapper to map IPv4 connections to my OpenVPN server running behind a DS-Lite IPv6 cable connection. //edit I tried with a non root user and root. But I get the same ...
4
votes
0answers
180 views

VPS, VPN and Policy Routing in Linux

I am looking for a way to configure my VPN on my VPS in a way that my SSH connection will go through regular network, but all other traffic that goes out of that VPS will go through VPN. I decided to ...
4
votes
0answers
223 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
0answers
131 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 ...
3
votes
0answers
385 views

Route subnet traffic through OpenVPN tunnel

i have a linux machine set up as a gateway between an isolated subnet and the rest of my network. NAT is done via iptables and works fine. # Generated by iptables-save v1.6.1 on Mon Nov 27 10:22:22 ...
3
votes
0answers
720 views

External IP addresses logged as “Martian source” on Docker interface

I am running OpenVPN in a container (kylemanna/docker-openvpn) on Ubuntu 15.10 and Docker 1.13.1. On the host, in /var/log/syslog I am getting quite a number of the following messages: Apr 4 19:35:...
3
votes
0answers
487 views

Resolvconf not resetting DNS settings

I am using OpenVPN 2.3.11 i686-pc-linux-gnu to connect to a remote VPN server. I would like to connect to the VPN server, load the DNS nameservers from the VPN server. Once disconnecting from the ...
3
votes
0answers
125 views

Per-user DNS settings for VPN

My system's set to send only a particular user's traffic through a vpn (via iptables and --uid-owner). It works fine, but that user's DNS leaks onto the open net. Any way to send only one user's DNS ...
3
votes
0answers
443 views

OpenConnect only works once

I am using open connect to create a split VPN connection. It works great... the first time. If the openconnect process dies, subsequent tries appear to succeed, but leave me unable to actually access ...
3
votes
0answers
378 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 ...
3
votes
0answers
804 views

Two IP addresses assigned to the same network card - OpenVPN issues?

I have a laptop running Arch Linux. At home, I can connect to my OpenVPN server without problems; however, my college network seems to use some odd configuration where upon connection I'm assigned two ...
3
votes
0answers
784 views

OpenVPN public IP on tun0 interface instead of vpn network

I can't access devices in local network behind openvpn client using public IP of VPN server. A little bit of information: Openvpn server (openVZ, Debian7) Opevpn client (raspberry pi 2 raspbian ...
3
votes
0answers
1k views

Generate openvpn-client keys based on asuswrt ca

Question How can I authenticate a client on my openvpn-server (running asuswrt) with just a certificate? Crosspost from https://stackoverflow.com/questions/30032124/generate-openvpn-client-keys-...
3
votes
0answers
315 views

After changing network openvpn keeps querying stale dns

After changing network connection in my laptop (fedora 21) openvpn clinet is unable to resolve server address so every several seconds same line appears in logs: RESOLVE: Cannot resolve host address: ...
3
votes
0answers
101 views

Route VPN Connections through VPN

I am currently setting up a wireless router using OpenWRT. The landlord of the dorm I live in requires joining a VPN to access the internet, supporting both PPTP and OpenVPN. I want to support the "...
3
votes
0answers
556 views

Mint changes default route when eth0 comes back and breaks existing tcp connections

I have two interfaces on my laptop (eth0, wlan0). lets say I am moving away from desk and connecting to an internal network A using openvpn software which uses wlan0 as gateway. I then ssh to a few ...
2
votes
0answers
32 views

Openvpn in docker-not available connection

I run successfully a docker openvpn container: ~# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
2
votes
0answers
108 views

can't forward port through openVPN using iptables on debian

I am trying to forward a port from public machine to another machine that is connected via VPN. that machine connects to internet via this VPN. I am using openvpn and iptables on debian. the vpn ...
2
votes
0answers
808 views

Missing openvpn routes with network manager

I'm trying to setup a VPN using network manager. When I run openvpn manually with my config, it works fine (sudo openvpn --config MyVPN.ovpn). Then when I print the routes (sudo route -n), it gives me:...
2
votes
0answers
153 views

OpenVPN private network routing Docker server not accessing

I have completed the Openvpn server setup and able to connect the VPN server from the client. Also, I have modified Iptables rule to access private network (Docker, MySQL, and Kafka). From VPN client ...
2
votes
0answers
234 views

OpenVPN connection suddenly disconnects

I have a raspbian client that is supposed to have an openvpn connection to a remote vpn server. This connection can be successfully establisehd, but after a day or so, it is broken. That is, the ...
2
votes
0answers
672 views

Connect VPN through privoxy

I'm going to configure anonymous connection to internet following below schema: ISP -> Privoxy (chained with TOR) -> OpenVPN network (for e.g. VPNGate) -> internet I want to gain higher anonymity. I ...
2
votes
0answers
132 views

openwrt create ovpn files

i am trying to setup an openvpn server to my openwrt router. i would like to create a single ovpn file for each user, instead of multiple files for each user. in my debian machines i use the Nyr/...
2
votes
0answers
440 views

Linux gateway: how to route LAN-originated NATed connections through OpenVPN tunnel?

I’ve run a SOHO domain for many years, including a Linux-based firewall/gateway with SNAT for internal clients, and offers a variety of services on the WAN which include port forwarding (DNAT). The ...
2
votes
0answers
745 views

OpenVPN GUI, avoid routing all the internet traffic over VPN

I've got a problem with the user interface of OpenVPN in KDE. I imported my OpenVPN configuration file in the gui but it seem not be the same. In my original configuration,which works perfectly in ...
2
votes
0answers
51 views

OpenVPN: raspberry pi AP to other pi w/ VPN

I've established, I hope, an openvpn server on my raspberry pi at my house. I have another Raspberry Pi acting as an AP at my university so that my lab can connect to the internet through the AP. I'm ...
2
votes
0answers
435 views

Openvpn Port Forwarding for a game server

My scenario- I have two servers running ubuntu called S1 and S2. S1 has a public IP Address and it runs the openvpn server. S2 has openvpn client installed and it is connected to the open vpn server. ...
2
votes
0answers
3k views

OpenVPN HMAC authentication failing despite seemingly identical client & server configs

I've looked all over for a solution to this, and I can't seem to find anything. Client side I am receiving this very generic error: Wed Dec 21 16:26:17 2016 TLS Error: TLS key negotiation failed to ...
2
votes
0answers
839 views

Openvpn client cannot ping openvpn server and server lan

I have OpenVPN set up on a Debian gateway server. Openvpn server gateway router lan is 172.16.20.0/24. The Gateway IP is 172.16.20.254. Below the openvpn.conf file: port 1194 proto udp dev tun ca ca....
2
votes
0answers
583 views

OpenVPN does not appear to clear the route table when a VPN tunnel is broken

I have set up a Raspberry Pi (called blitzen, installed with Jessie) on my local network to act as a VPN gateway for all computers on the local network to use to access the internet. I am using ...
2
votes
0answers
348 views

VPN with iptables and routing: access port from local network

I use a commercial VPN provider with OpenVPN as client on Ubuntu Server 14.04 LTS (but doing some testing on 16.04 LTS too). I have configured iptables and routing tables to mark packets based on user ...
2
votes
0answers
758 views

OpenVPN with /112 IPv6 subnet, unable to route to eth0 and vice-versa

I'm trying to set up an IPv6-enabled OpenVPN server. The provider only gave me a /64 subnet : 2a06:1700:1::640/64. Here is the OpenVPN configuration : port 1194 proto udp dev tun0 server-ipv6 2a06:...
2
votes
0answers
532 views

How to add a dependency to internet to a service with systemd on arch?

My openVPN connection start perfectly on boot with connman service for Internet and openVPN for my vpn connection. But, If I boot with a connection to Internet at boot and after many time I ...
2
votes
0answers
616 views

How to restrict openvpn clients to communicate with other vpn clients

I have this Openvpn scenario.. I have Lot of openvpn clients connected to my server, All i want is to restrict client to client communication. for eg. i have (10.20.0.2,10.20.0.3,10.20.0.4,10.20.0....
2
votes
0answers
3k views

OpenVPN client config: Route command fails

I want to connect to my company's VPN server, so I can access work resources. I'm running Ubuntu Gnome 15.04, and I've been given an ovpn-file. I installed OpenVPN and run sudo openvpn --config ~/...
2
votes
0answers
87 views

Make OpenVPN accessible from outside the network

I'm trying to get openvpn working on my centos machine but I'm having some issues and I don't really know much about openvpn. I've managed to get it working and I can connect to it with another ...
2
votes
0answers
1k views

Port forwarding with iptables and PIA VPN for single user

I've gotten a Private Internet Access VPN setup on a Mythbuntu 14.04 machine and I am at wits end trying to get port forwarding working with rTorrent (and ruTorrent). My setup is rTorrent running ...
2
votes
0answers
394 views

Cannot connect to OpenVPN server

I'm trying to run an OpenVPN server on a Raspberry Pi. After installation using apt, I wanted to establish just a raw connection to test it, but I can't connect to the server from another computer. ...
2
votes
0answers
1k views

Running a systemd service file after the network is up to bypass an OpenVPN default gateway

I would like to add a static route using a systemd service file on system boot. I have a DMZ network on a separate 192.168 class C network reachable via my default gateway. I also use OpenVPN to ...
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
0answers
782 views

Make docker containers accessible via vpn

I have three physical machine A, B, C, each of them has docker installed. I want to install openvpn server on machine A, and install openvpn client on B and C. B and C will connect to A. I want to ...
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
0answers
99 views

VPN tunnel to two services on two servers?

I've got 2 CentOS 6.5 servers, each running one service: server A: 10.140.54.1/27 running service MySQL port 3306 server B: 10.140.54.2/27 running service httpd port 443 Server B's httpd service is ...
2
votes
0answers
468 views

OpenVPN does not let me in the Internet

I installed OpenVPN on my openSuse 13.1 Server with this manual: http://en.opensuse.org/SDB:OpenVPN_Installation_and_Setup The connection is working via OpenVPN, but I cannot use the ...
2
votes
0answers
11k views

set rules for openvpn by iptables in firewall CentOS 6.2

Firewall (FW), three leg: eth0: 172.16.1.101 eth1: 192.168.99.99 (LAN) eth2: 10.0.0.1 (DMZ) I installed openvpn in FW by tunnel mode, already ok: tun0: 192.168.10.0/24. If I use shorewall and ...
2
votes
0answers
639 views

openvpn server doesn't NAT the incoming traffic

It's couple of days that I'm having hard time figuring out what's wrong with openVPN. Few days ago, I installed and configured openVPN on a Debian server and also on my Ubuntu client. I am facing a ...
2
votes
0answers
998 views

openvpn with systemd: reconnect

I'm using openvpn enabled as a service. It works well, but once I get assigned a new IP address or lose the connection, I can't access to the internet any more. Then I have to systemctl restart ...
2
votes
0answers
260 views

iCloud stuff stops working while connected to OpenVPN

I have a fairly simple OpenVPN setup on an OpenVZ VPS with Ubuntu 11.10. Client is the Viscosity client on Mac OS X 10.8.2, and after some testing, we can rule out the client as being part of the ...
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 ...