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

learn more… | top users | synonyms

1
vote
1answer
616 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 ...
0
votes
1answer
1k views

iptables redirect traffic from VPN interface to next interface

Can you help me with this problem please? I need redirect all traffic from tun0 interface (OpenVPN tunnel) to eth1 interface. eth1 is internal network behind this system which works as special ...
1
vote
1answer
19 views

Make user made entries in /etc/hosts permanent

I use Juniper Networks network connect to connect to the office network. Once i am inside the office network, i check the server ips and add entries for them in /etc/hosts file like, 10.199.xx.yy ...
0
votes
0answers
12 views

how do I update client certificates in openvpn?

I am using OpenVPN to secure access to apps running on a CentOS 7 server. Each authorized client has a key which is used to connect to the server using OpenVPN. The problem is that the keys are just ...
2
votes
1answer
40 views

Make OpenVPN restart upon new network connection on systemd

How would you go about making OpenVPN automatically restart upon connecting to a network? The issue is that every time a network connection is lost, or if the computer is booted without a network ...
0
votes
0answers
22 views

External port forwarding stop working when VPN is activated

I've a problem with my local Debian server. I use a port forward to allow access from outside my lan to my server. It's works very well but when I activate my VPN (OpenVPN) on my server, the port ...
7
votes
2answers
15k 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
15 views

Rotate remote server in openvpn config

In my config, I have chosen a remote server for hide.io: # cat /etc/openvpn/anonvpn.conf |grep remote remote nl.hide.me 3478 It seems like some servers are somehow overloaded. I have a script that ...
0
votes
1answer
388 views

Frequent disconnections in OpenVPN

I'm suffering random disconnections with OpenVPN. I don't know much about the subject, maybe you can point me in the right direction? Here is the tail for /var/log/messages, it contains a <warn> ...
1
vote
1answer
594 views

Bridged TAP interface to virtualbox

I need bridged TAP interface on client side of my VPN to virtual machine. I use VirtualBox 4.3.12. But in Adapter Network options in Attached to: Bridged adapter I do not see my TUN adapter. I have ...
2
votes
1answer
616 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 ...
0
votes
0answers
29 views

openvpn connection tracking

We have an openVPN-server based on Debian. Client connects to server and get local IP-address, for example 10.20.0.4. Is it possible to get information, what web-sites does it use? We consider to ...
0
votes
1answer
652 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 ...
0
votes
0answers
24 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
2answers
53 views

Iptables exception for specific port

I'm new to iptables but configured a simple natting today on my raspian: # Always accept loopback traffic /sbin/iptables -A INPUT -i lo -j ACCEPT # Allow established connections, and those not ...
0
votes
0answers
37 views

OpenVPN traffic re-routing fails

I have installed a small OpenVPN server on a ArchLinux server I own to get a little more security on my laptop (also ArchLinux) connected to a unsecure Wi-Fi connection. Until recently, the VPN worked ...
0
votes
1answer
52 views

/bin/sh script error “arithmetic expression: expecting primary: ” + “ ”

ERROR: ./client-disconnect.sh: 22: ./client-disconnect.sh: arithmetic expression: expecting primary: " + " I just need to know how to fix it. It's for user accounting with OpenVPN. Script ...
0
votes
2answers
1k views

Route wlan0 to openVPN tunnel and rest to eth0

I'm having problems to create route/iptables rules for following configuration: I have an openVPN server (tun type) running on my raspberry machine at home At work i have company pc (behind proxy) ...
1
vote
1answer
34 views

Run openvpn without root privilegies

I am working with openvpn, when I type: $ sudo openvpn Every is fine, but when I type: $ openvpn bash: openvpn: command not found I try in my Debian 8 with this instructions but in Jessie I can ...
0
votes
1answer
43 views

How to check server.conf error for OpenVPN

I want to install OpenVPN server in my VPS. After configuration I run sudo service openvpn start, but failed to start. Is there a some kind of "grammar check" option for server.conf? I put the ...
-1
votes
2answers
238 views

OpenVPN and MerlinWRT

My ASUS router is flashed with MerlinWRT. This configuration used to work, however now when I connect I get, $ sudo openvpn ./client1.ovpn OpenVPN 2.3.2 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] ...
0
votes
0answers
23 views

OpenVPN connection impossible from some network

I sucessfully installed an OpenVPN serveur on my Raspberry Pi and everything works like a charm when I want to connect to the VPN server from a random 4G or wifi network. I configured OpenVPN to use ...
0
votes
0answers
26 views

OpenVPN integration with LinOTP

I try to run OpenVPN with two factor authentication using LinOTP. I can't authenticate my login and password (PIN+OTP) with FreeRadius which is configered with LinOTP using OpenVPN. I get possitive ...
1
vote
1answer
241 views

Debian 8 Jessie with OpenVPN client

I have a Debian 8 Jessie server that I need to connect to my home network and I'm using an OpenVPN server on a pfSense 2.2 box at home. I have done this fine under older Debian versions, so I'm ...
5
votes
1answer
706 views

How can I make the eth1 up and always available for remote access, where eth0 will be used for host to host IPSec VPN?

I am running Amazon EC2 instance with Red hat enterprise linux, where I have two network interface. Now: eth0 is currently active having public ip where I am remotely logged in via SSH, to ...
0
votes
0answers
25 views

Forward only one port in openvpn

I have a ‍openvpn server in Amazon Cloud and I use it to make a link between my home pc and linux computer which is located on a corporate network. It works except that it routes all traffic through ...
0
votes
1answer
32 views

A script to install OpenVPN & modify iptables?

I d like to automatize the install/config of OpenVPN on my client machines. Roughly, it should looks like : - apt-get openvpn - cp, edit, .... - modify iptables. Is it possible in one script ? or am ...
2
votes
0answers
171 views

Linux Mint 17.1 Rebecca - “import from file” when setting up VPN [closed]

I'm attempting to setup a VPN in Linux Mint 17.1 using the network manager. When I click the + button to add a new connection type, and select VPN, it only lists the option to import files? I'm lost, ...
2
votes
1answer
2k views

Routing a LAN through OpenVPN on OpenBSD 5.5

I'm configuring an OpenVPN gateway to allow a LAN access to the internet through the tunnel. The gateway is running OpenBSD 5.5-stable amd64 on the PC Engines APU platform. The LAN contains re1, re2, ...
2
votes
0answers
59 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. ...
0
votes
1answer
4k views

How to ignore “certificate is not yet valid” errors

I have systems that sometimes lose time drastically due to low RTC battery voltage such that the system time lies outside these boundaries (/etc/openvpn/certificate): Not Before: Jun 18 16:40:18 2012 ...
0
votes
0answers
88 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
48 views

Job for openvpn@server.service failed

here is the problem during starting the OpenVPN service.. Just after command systemctl start openvpn@server.service terminal shows message: Job for openvpn@server.service failed. See 'systemctl ...
2
votes
1answer
4k views

Iptables forward with pptp and openvpn

I have OpenVPN and PPTP installed on a VPS. I'm having a few questions that I can't seem to get a firm answer on. I want to install OpenVPN on 1.1.1.1 (eth0, public IP address) and PPTP on 1.1.1.2 ...
0
votes
0answers
21 views

Unable to execute root commands using client-connect option openvpn

I'm using the openvpn option client-connect to run a script when a client connects. The scrit works fine when I use simple commands but when I add commands that need root privileges it doesn't work ...
0
votes
1answer
76 views

Php shell_exec() : for non root user, how to access root command

I have a tricky step to walk for my system (openvpn, 20 clients - raspberries, 1 server CentOS). I want to make an auto install, from clients, for their keys. They call a php page on the server, ...
0
votes
0answers
47 views

Cannot connect to public IP address of server used as VPN gateway?

When I try connect to the public IP address of server that is also used as an openvpn gateway from a Windows computer within the network it fails to connect, but if I connecto the VPN ip address it ...
0
votes
1answer
26 views

How can I restart a VPN whenever I connect via wireless or 3G/4G?

I need to restart my VPN whenver I connect to the internet via wireless via a HotSpot or through a 3G Modem. How can I restart a VPN whenever I connect via wireless or 3G/4G? My distro is Ubuntu ...
0
votes
0answers
81 views

(noob) script works from root ssh <-> php shell_exec() does not

A nooby2death question: In a vpn project, I generate keys automatically for clients. I do this with a script file containing : pkitool clientNameForKey This line : - does work if I execute the ...
0
votes
1answer
46 views

OpenVPN client config :: why is needed ca.crt?

I configured a VPN (OpenVPN, mode: multiclients-1server), CentOS Server, multiple Rasp's clients. CA.crt is needed by each client, in addition of the client.crt & client.key . I wonder... why ? ...
2
votes
3answers
57 views

Does a Certificate Authority represent my company or a server?

I am setting up my second OpenVPN server with TLS and so I have a question about CA. Should I create a separate CA for each server or use the same? Why? Both servers will cater to the same network ...
0
votes
2answers
101 views

Shall I copy server's ca.crt to the client?

I'm setting up an OpenVPN server and I need a little info: do I need to copy the server's ca.crt to the client? I have tried both ways and only when I do that I can get it working; I would like to ...
1
vote
0answers
27 views

Issues with getting a tun0 connection to route any and all connections from eth0 to be made to this interface and if not working drop

So I've been having this issue for a while and the internet has been mixed for a response. Sadly most configurations for setting up a VPN seem to assume you are running both a vpn client and server ...
1
vote
2answers
37 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 ...
0
votes
3answers
101 views

Get MAC of a client request?

I have a network with 20 raspberries (clients) and 1 server. I'd like to check MAC of client request, is that possible ? Further, possible without being known (nor visible) by the client ? NB : I ...
1
vote
1answer
50 views

Connect to Samba Share across OpenVPN tunnel

I've recently setup OpenVPN for remote connection to our CentOS 6 file server. Server Static IP: 10.0.0.66 Remote OpenVPN IP: 10.8.0.1 However when using the OpenVPN connection I am unable to ...
0
votes
1answer
147 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 ...
3
votes
0answers
75 views

Make systemd reload only single openvpn process and not the whole group

I'm running several openvpn instances on my server with debian stable; as well some clients as a server instance. Right now, when one of these instances fails, systemd seems to kill and restart the ...
2
votes
0answers
19 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 ...
3
votes
1answer
61 views

forward vpn traffic to another vpn server

I have set up 2 VPN servers in 2 different locations (A running strongswan as server and openvpn as client; B running openvpn as server), And A and B is linked via openvpn. What I want to do is to ...