amaze100
My openvpn server process on openwrt crashes if openvpn is started with cryptodev engine, with below logs,
Please note, crash happens only during packet exchange between server and client that to after some duration,
and duration differs if cipher is changed or prng nsl is changed.
i.e. higher the nsl longer the duration
Thu Jun 28 11:54:51 2018 client2/<<ip>>:57348 RAND_bytes() failed
Thu Jun 28 11:54:51 2018 client2/<<ip>>:57348 ERROR: Random number generator cannot obtain entropy for PRNG
Thu Jun 28 11:54:51 2018 client2/<<ip>>:57348 Exiting due to fatal error
Thu Jun 28 11:54:51 2018 client2/<<ip>>:57348 Closing TUN/TAP interface
Thu Jun 28 11:54:51 2018 client2/<<ip>>:57348 /sbin/ifconfig tun0 0.0.0.0
ifconfig: SIOCSIFADDR: Operation not permitted
Thu Jun 28 11:54:51 2018 client2/<<ip>>:57348 Linux ip addr del failed: external program exited with error status: 1
...
Openvpn works fine if cryptodev engine is not used!
Am I missing some configuration here ? or cryptodev needs to be compiled with some specific flags?
Any pointers , suggestions would greatly help
Thanks.
TinCanTech
Sorry, we encountered an error while displaying this content. If you're a user, please try again later. If you're an administrator, take a look in your Flarum log files for more information.
amaze100
Sorry for the duplicate.
How should I fix the entropy source for engine? In case of w/o engine, /dev/random and /dev/urandom take care of it.
any pointers for hw engine?
We use 'cryptodev engine' because we want use available hardware acceleration for the crypto operations.