Hello,
I want to assign a static IP address to different computers to access it easily. I have read various topics, including
this one.
So I created a directory named ccd and and added the client-config-dir configuration line with an absolute link (client-config-dir /etc/openvpn/ccd). I checked the rights following
this topic. So I saw that the process was used by nobody (with ps and top command) and I did a chown -R nobody: nogroup / etc / openvpn but it does not work.
This is the server.conf file :
mode server
topology net30
tls-server
proto tcp-server
port 443
dev tun
client-config-dir /etc/openvpn/ccd
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
tls-auth ta.key 1
key-direction 0
cipher AES-256-CBC
ifconfig 10.8.0.1 10.8.0.2
ifconfig-pool 10.8.0.204 10.8.0.255
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
route 10.8.0.0 255.255.255.0
push "route 10.8.0.1"
push "route 10.8.0.0 255.255.255.0"
keepalive 10 120
user nobody
group nogroup
chroot /etc/openvpn/jail
persist-key
persist-tun
comp-lzo
verb 10
mute 30
status openvpn-status.log
log-append /var/log/openvpn.log
and the iutsd file in ccd directory :
ifconfig-push 10.8.0.14 10.8.0.13
Finally, I put the verb value to 9 and I saw "iutsd/193.50.135.199:59197 TEST FILE '/etc/openvpn/ccd/iutsd' [0]".
Thanking you in advance