I rent a small VPS the other day to install OpenVPN on it.
It runs on a Debian 7 distro, with the latest (v2.3.6) OpenVPN.
The config below works fine.
Server config:
port 1195
proto udp
dev tap
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
tls-auth ta.key 0
cipher AES-256-CFB
server 10.8.0.0 255.255.255.0
client-config-dir /etc/openvpn/ips
keepalive 10 120
max-clients 10
client-to-client
user nobody
group nogroup
persist-key
persist-tun
comp-lzo
verb 3
status openvpn-status.log
log-append /var/log/openvpn.log
Now, if I add the following, it refuses to start:
chroot /etc/openvpn/jail
Here's the error logged :
Options error: --client-config-dir fails with '/etc/openvpn/jail//etc/openvpn/ips': No such file or directory
Options error: Temporary directory (--tmp-dir) fails with '/etc/openvpn/jail//tmp': No such file or directory
Can anyone tell what I'm missing here?
The "jail" folder exists by the way.