Michael Scheidell
2006-07-03 16:59:53 UTC
I don't seem to be able to have openvpn 2.04 write to the
ifconfig-pool-persist file.
When it starts, it creates (a blank) one, but never writes to it, ever.
.conf file:
(it originally created the file rw------ owned as root.
I chown[ed] it openvpn:openvpn and chmod[ed] it g+rw and restarted
openvpn.
Still won't write to file.
Syslog shows it ok:
Jul 3 12:53:54 link openvpn[57009]: ifconfig_pool_persist_filename =
'./client2ip.txt'
Tried client2ip.txt ./client2ip.txt,
/usr/local/etc/openvpn/client2ip.txt, no good
(it just creates a 0 byte file, that's it)
Tried with and without ccd dir directives.
--- .conf file:
server 192.168.0.0 255.255.0.0
proto udp
float
dev tun0
persist-tun
persist-key
persist-local-ip
persist-remote-ip
ifconfig-pool-persist ./client2ip.txt 60
reneg-sec 28800
passtos
client-to-client
# fast-io, udp only, not windows, when shape not used.
fast-io
mtu-test
user openvpn
group openvpn
keepalive 10 60
comp-lzo
# Encryption Settings
ca ca.crt
cert gateway.crt
key gateway.key
dh dh2048.pem
tls-auth ta.key 0
crl-verify crl.pem
#tried with and without ccd directives, no change
client-config-dir ccd
ccd-exclusive
verb 4
ifconfig-nowarn
status ./openvpn-status.log
ifconfig-pool-persist file.
When it starts, it creates (a blank) one, but never writes to it, ever.
.conf file:
(it originally created the file rw------ owned as root.
I chown[ed] it openvpn:openvpn and chmod[ed] it g+rw and restarted
openvpn.
Still won't write to file.
Syslog shows it ok:
Jul 3 12:53:54 link openvpn[57009]: ifconfig_pool_persist_filename =
'./client2ip.txt'
Tried client2ip.txt ./client2ip.txt,
/usr/local/etc/openvpn/client2ip.txt, no good
(it just creates a 0 byte file, that's it)
Tried with and without ccd dir directives.
--- .conf file:
server 192.168.0.0 255.255.0.0
proto udp
float
dev tun0
persist-tun
persist-key
persist-local-ip
persist-remote-ip
ifconfig-pool-persist ./client2ip.txt 60
reneg-sec 28800
passtos
client-to-client
# fast-io, udp only, not windows, when shape not used.
fast-io
mtu-test
user openvpn
group openvpn
keepalive 10 60
comp-lzo
# Encryption Settings
ca ca.crt
cert gateway.crt
key gateway.key
dh dh2048.pem
tls-auth ta.key 0
crl-verify crl.pem
#tried with and without ccd directives, no change
client-config-dir ccd
ccd-exclusive
verb 4
ifconfig-nowarn
status ./openvpn-status.log
--
Michael Scheidell, CTO
SECNAP Network Security
561-999-5000 x 1131
www.secnap.com
Michael Scheidell, CTO
SECNAP Network Security
561-999-5000 x 1131
www.secnap.com