I just observed that one of my OpenVPN processes were using 99% of my CPU on
my newly installed password auth based firewall.
After some testing I've found that it's the management interface that's
causing it. Starting OpenVPN and everything is calm, but as soon as I connect
to the management interface, OpenVPN starts looping eating up all CPU, and it
does not stop after I disconnect from the management interface. I have to
restart OpenVPN to get rid of the problem.
Connecting with a OpenVPN client also causes openvpn to exit this loop.
openvpn@fw-ktn:/etc/openvpn$ openvpn --version
OpenVPN 2.0_rc5 i686-pc-linux [SSL] [LZO] built on Dec 16 2004
openvpn@fw-ktn:/etc/openvpn$ uname -a
Linux fw-ktn 2.4.26 #2 Wed Jun 30 15:30:57 CEST 2004 i686 unknown
This is what I get when running strace on the process:
poll([{fd=5, events=POLLIN|POLLPRI}, {fd=6, events=POLLIN|POLLPRI}, {fd=3,
events=POLLIN|POLLPRI}, {fd=7, events=POLLIN|POLLPRI, revents=POLLNVAL}], 4,
10000) = 1
time(NULL) = 1104923675
poll([{fd=5, events=POLLIN|POLLPRI}, {fd=6, events=POLLIN|POLLPRI}, {fd=3,
events=POLLIN|POLLPRI}, {fd=7, events=POLLIN|POLLPRI, revents=POLLNVAL}], 4,
10000) = 1