Page 1 of 1

openvpn run default keepalive option ?

Posted: Fri Nov 26, 2021 3:51 am
by alex.tls
Hi everyone,

I run openvpn in TCP & tap mode.

at the beginning, I add

Code: Select all

keepalive 30 180
and add

Code: Select all

verb 7
in server config. from the log, I see openvpn server has log message every 10s, looks like it's keepalive message sent in every 10s, but it should not, I set it to 30s.

then I remove the option

Code: Select all

 keepalive 30 180
, in the log, it still has new log message every 10s/5s, what happen here, openvpn works not as expected. how to disable keepalive or how to change it correctly, below is some sample log message. anyone knows that ?

Code: Select all

Fri Nov 26 11:48:15 2021 us=972198 MULTI: REAP range 0 -> 16
Fri Nov 26 11:48:25 2021 us=982365 MULTI: REAP range 16 -> 32
Fri Nov 26 11:48:30 2021 us=997496 MULTI: REAP range 32 -> 48
Fri Nov 26 11:48:41 2021 us=7514 MULTI: REAP range 48 -> 64
Fri Nov 26 11:50:40 2021 us=579556 MULTI: REAP range 48 -> 64
Fri Nov 26 11:50:40 2021 us=579633 MULTI TCP: multi_tcp_action a=TA_TIMEOUT p=0
Fri Nov 26 11:50:40 2021 us=579647 MULTI TCP: multi_tcp_dispatch a=TA_TIMEOUT mi=0x00000000
Fri Nov 26 11:50:40 2021 us=579680 MULTI TCP: multi_tcp_post TA_TIMEOUT -> TA_UNDEF

Re: openvpn run default keepalive option ?

Posted: Fri Nov 26, 2021 4:21 am
by alex.tls
sorry, I found it does work from client when I set keepalive 30 180

Code: Select all

Thu Nov 25 23:18:27 2021 us=54645 RECEIVED PING PACKET
Thu Nov 25 23:18:57 2021 us=470778 RECEIVED PING PACKET