Questions tagged [openvpn]

OpenVPN is a free virtual private network (VPN) client and daemon.

4
votes
0answers
745 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 ...
1
vote
1answer
368 views

OpenVPN Start Service [closed]

I am trying to configure OpenVPN on my CentOS 7 box. I am following this guide: https://www.digitalocean.com/community/tutorials/how-to-setup-and-configure-an-openvpn-server-on-centos-7#step-1-%E2%...
4
votes
0answers
378 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 ...
1
vote
1answer
152 views

iptables block vpn from reconnecting

I am having a bit of trouble with a solution that I have come up with for VPN access. Here is what I want: all traffic that comes from deluge always goes through the VPN when VPN disconnects, deluge'...
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, ...
0
votes
1answer
2k views

How to use openvpn with tcpvpn?

Is it possible to use openvpn with the configuration downloaded from tcpvpn.com ?(.ovpn format) I have already created my account on tcpvpn settings are Username : tcpvpn.com-linuxme Password : ******...
1
vote
0answers
939 views

OpenVPN service started but not listening

EDIT: check for udp netstat -upnl I have tried to follow these two guides https://linuxconfig.org/how-to-setup-a-vpn-with-openvpn-on-debian-9-stretch-linux and https://www.digitalocean.com/community/...
3
votes
0answers
386 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
1answer
2k views

Self-compiled OpenVPN won't start from systemd

I have compiled openvpn from source, running openvpn --version returns: OpenVPN 2.4.4 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Nov 19 2017 library ...
0
votes
1answer
280 views

full paths of iptables for up/down scripts

I am running a client install of openvpn on a raspberry pi with the latest raspbian os. everything is working except my route-up.sh and down.sh scripts. I can run them manually and they work, but the ...
0
votes
1answer
434 views

All network traffic go through OpenVPN

I have ubuntu server on which I want to create VPN access. For that I am using OpenVPN. Also for tutorial I am reading this one: tutorial The problem is that when I blocked the traffice with iptables ...
3
votes
2answers
3k views

How do I stop Debian from overwriting /etc/resolv.conf and overwriting my VPN's nameservers? [duplicate]

Background I'm running Debian stretch/stable; I installed openvpn from the repo abd downloaded the configuration file us1041.conf (as an example) from my VPN provider into /etc/openvpn/us1041.conf. I ...
2
votes
1answer
394 views

How can I set up an IP-Agnostic VPN Kill Switch using ufw

Been searching for the answer, but have found nothing. Like most smart Internet users, I use a VPN. You can correct me if I'm wrong, but when I set up a VPN (using the OpenVPN protocol, at least) the ...
2
votes
1answer
422 views

Use the same common parameters for all openvpn config files

I have several openvpn .conf files for various vpns, and they all need to have these lines at the end of the file, like script-security ... setenv PATH ... up ... down ... down-pre ... Is there a ...
0
votes
0answers
2k views

Openvpn local/remote TLS keys are out of sync

I am having a very strange issue with my openvpn server configuration: I never see this before, when a windows client connects to the server after some time the server starts to say this: TLS Error: ...
1
vote
0answers
152 views

OpenVPN: per client MTU

I have a somewhat large VPN network which works perfectly with "mtu-test". On one client, the mtu-test fails because of a broken MTU discovery so I have create a special configuration on the server ...
1
vote
0answers
95 views

Why is my VPN client not available (unable to exchange data)?

I have established a connexion between my VM and my Ubuntu client $ sudo openvpn --config config.ovpn Sat Nov 4 14:38:29 2017 OpenVPN 2.3.4 i586-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [...
2
votes
1answer
470 views

curl not receiving JSON in open vpn

Netgear R7000 router running Tomato v1.28.0000 -2017.2-kille72- K26ARM USB AIO-64K Goal: receive port number from JSON using curl When I run this script in shell it works, but not when I call the ...
2
votes
2answers
171 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 ...
0
votes
1answer
738 views

Assign public ip to every openvpn client

I've configured OpenVPN server which will assign private IP to the requested OpenVPN client. But I want to assign different public IP from the pool to every client. What changes need to be done for ...
0
votes
3answers
2k views

How to make all client traffic through the OpenVPN if server side did't push the route?

I installed OpenVPN client on the OpenWRT and want to direct all my traffic through the VPN, including the game traffic. But the server side didn't push the route to the client side. How can I ...
4
votes
3answers
5k views

Running a command after my OpenVPN client connects

Currently, I connect to a remote network using openvpn, and then when "Initialization Sequence Completed" appears in the terminal, I run a script in a second window. (All without having to type my ...
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 ...
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 ...
1
vote
0answers
406 views

Cannot connect to SSH with iptables firewall enabled

I cannot seem to connect to my VPS even when enabling port 22 on my firewall. I have tried multiple iptables inputs to try and allow SSH to work. This is a debian 9 stretch system with iptables ...
0
votes
0answers
1k views

UFW blocks traffic for one vpn connection

I configured openvpn server on openwrt. When I try to connect to the vpn server, ufw blocks traffic from my router: Sep 29 19:22:58 debian nm-openvpn[11139]: OpenVPN 2.4.3 x86_64-pc-linux-gnu [SSL (...
0
votes
0answers
667 views

Able to ssh into OpenVPN server after establishing VPN tunnel, but unable to connect to other machines on my server side LAN or on the Internet

I installed OpenVPN (PiVPN to be more specific) on a Raspberry Pi, and I even think I was able to connect to the Internet through the VPN tunnel after the installation, but now it does not work ...
0
votes
1answer
32 views

OpenVPN between two PCs in the same LAN

I would like to build a network environment where I have two Linux PCs (I will call them LPC1 and LPC2) connected to a switch, and I would like to encrypt the traffic between the two with OpenVPN. Do ...
1
vote
0answers
9k views

OpenVPN client: ERROR: Linux route add command failed

I am having this error using OpenVPN client: Mon Sep 25 07:46:43 2017 /sbin/ip link set dev tun0 up mtu 1500 Mon Sep 25 07:46:43 2017 /sbin/ip addr add dev tun0 local 10.8.0.10 peer 10.8.0.9 Mon Sep ...
1
vote
1answer
167 views

What are the alternatives for starting and stopping an openvpn configuration on Debian Jessie?

I had to change the openvpn configuration automatically and realized that the service was starting without any configuration. I assume that the openvpn service daemon was starting all configurations ...
2
votes
1answer
1k views

How to use both VPN and non-VPN at the same time?

This might be an issue with VPN configuration, but what I'd like to do is have a specific user account use a VPN connection and have the rest of the system use non-VPN connection. The problem I'm ...
0
votes
2answers
591 views

How do I route all traffic on a machine over an openvpn server while the machine itself runs an openvpn server?

Advanced info Machines involved: A := vpn server inet 10.9.0.1 peer 10.9.0.2 tun0 B := vpn server inet 10.8.0.1 peer 10.9.0.2 tun2 vpn client inet 10.9.0.6 peer 10.9.0.5 tun1 C := vpn client ...
1
vote
0answers
321 views

Ubuntu - run OpenVPN client from network-manager as unprivileged user

I am trying to connect to a VPN using OpenVPN. The authentication is successful (I can see that when I run openvpn from the command line) but then my user doesn't have enough privileges to run ...
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 ...
2
votes
0answers
812 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
156 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 ...
0
votes
1answer
40 views

How to push tool to use openvpn client?

How to use openvpn client only for specific tool (f.e. for curl)? All other tools should not use vpn.
0
votes
1answer
522 views

Can't start OpenVPN with NetworkManager 'up' script

I'm trying to automatically start OpenVPN (which will connect to Private Internet Access VPN) when my ethernet connection goes up. I have /etc/NetworkManager/disaptcher.d/99-custom_script_handler #!...
1
vote
2answers
284 views

How to properly (securely) dis/connect to a VPN with OpenVPN in Debian?

What's the proper and most secure and convenient way of connecting a VPN over OpenVPN in Debian 9.1 with KDE? Is that: Running sudo openvpn --config config-path in the console and leaving the ...
0
votes
1answer
455 views

How to use ACL or PAC while using OpenVPN?

Currently I use a ip table to divide traffic when using OpenVPN, achieving this by running a script to sudo route add a list of IPs I like to connect directly. This posts an issue. When I request a ...
-1
votes
2answers
117 views

OpenVPN client should only communicate to VPN server via tunnel; rest via regular NIC

I find a lot of answers to exclude 1 host from the VPN tunnel, but I would like to achieve the opposite. My server at home gets an internal IP from the ISP, so I've set up a VPN connection so that I ...
0
votes
1answer
1k views

Firewalld Blocking OpenVPN Connections on Non-Standard Port

I've recently upgraded my CentOS 6 server to CentOS 7 and was busy configuring OpenVPN to run on a non-default port (1197) but I've run into a firewalld related issue. I am unable to connect to ...
0
votes
0answers
527 views

openssl error: adding extensions in section default

I'm trying to make server stuff(cert, req, key) with easy-rsa tool: ./easyrsa build-server-full srv_name nopass Using configuration from ./openssl-1.0.cnf Enter pass phrase for /var/...
0
votes
1answer
48 views

Chose network connection through xrdp

I've setup XRDP on a Lubuntu box, but it does not give me an option to choose which wireless network to connect to, nor can I connect to a VPN server like you can through the normal GUI. It uses ...
2
votes
0answers
236 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 ...
0
votes
1answer
329 views

When VPN client enabled access from 10.8.0.0 segment not possible

I have a server which has an OpenVPN client installed and which is connecting to the internet, via the tunnel, just fine. I can also reach the server on the LAN interface (192.168.1.x). However when I ...
4
votes
0answers
181 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 ...
2
votes
1answer
9k views

Automatically adding user and password to openvpn script

I have a working script, which allows me to do a vpn connection. It looks like this: openvpn --config VPNBook.com-OpenVPN-Euro1/vpnbook-euro1-tcp443.ovpn All is good, but I have to input the ...
0
votes
2answers
53 views

Autorun Script on Boot with Inputs?

I would like to run OpenVPN on boot of a Debian machine which also auto fills the server login and password. I've been having to run after booting through SSH constantly and detaching with tux but ...
2
votes
2answers
5k views

OpenVPN daemon not using config file

When using starting OpenVPN as a service it does not use my /etc/openvpn/server.conf. When looking in the /var/log/syslog, I only see Started OpenVPN service. without any additional logging of OpenVPN....