Skip to content

Option ping-timer-rem is ignored in OpenVPN 2.7-beta2 #873

@mikaku

Description

@mikaku

Hello,

I've configured OpenVPN 2.7BETA2 on a Rocky Linux 10 (aarch64) and I see that the logs get big because the server keeps restarting by timeout even when there is no client connected at all.

The option ping-timer-rem seems it doesn't have any effect.

The following is an excerpt of the log file:

[...]
2025-10-20 10:40:42 Server poll timeout, restarting
2025-10-20 10:40:42 net_addr_ptp_v4_del: 192.168.4.1 dev tun0
2025-10-20 10:40:42 SIGUSR1[soft,server_poll] received, process restarting
2025-10-20 10:40:42 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x.  Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
2025-10-20 10:40:42 TUN/TAP device tun0 opened
2025-10-20 10:40:42 tun/tap device [tun0] opened
2025-10-20 10:40:42 net_iface_mtu_set: mtu 1400 for tun0
2025-10-20 10:40:42 net_iface_up: set tun0 up
2025-10-20 10:40:42 net_addr_ptp_v4_add: 192.168.4.1 peer 192.168.4.2 dev tun0
2025-10-20 10:40:42 Could not determine IPv4/IPv6 protocol. Using AF_INET
2025-10-20 10:40:42 UDPv4 link local (bound): [AF_INET][undef]:6000
2025-10-20 10:40:42 UDPv4 link remote: [AF_UNSPEC]
2025-10-20 10:42:42 Server poll timeout, restarting
2025-10-20 10:42:42 net_addr_ptp_v4_del: 192.168.4.1 dev tun0
2025-10-20 10:42:42 SIGUSR1[soft,server_poll] received, process restarting
2025-10-20 10:42:42 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x.  Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
2025-10-20 10:42:42 TUN/TAP device tun0 opened
2025-10-20 10:42:42 tun/tap device [tun0] opened
2025-10-20 10:42:42 net_iface_mtu_set: mtu 1400 for tun0
2025-10-20 10:42:42 net_iface_up: set tun0 up
2025-10-20 10:42:42 net_addr_ptp_v4_add: 192.168.4.1 peer 192.168.4.2 dev tun0
2025-10-20 10:42:42 Could not determine IPv4/IPv6 protocol. Using AF_INET
2025-10-20 10:42:42 UDPv4 link local (bound): [AF_INET][undef]:6000
2025-10-20 10:42:42 UDPv4 link remote: [AF_UNSPEC]
[...]

and here is the server configuration at /etc/openvpn/server/vpn_0.conf:

tls-server 
dev tun
proto udp
port 6000

cert linux.crt
key linux.key
dh none

ifconfig 192.168.4.1 192.168.4.2
route 192.168.4.0 255.255.255.0

push "route 192.168.4.1 255.255.255.255"
push "route 192.168.3.1 255.255.255.255"
push "dhcp-option DOMAIN XXXXXXXXXX"
push "dhcp-option DNS 192.168.3.1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "dhcp-option WINS 192.168.3.1"

<peer-fingerprint>
<REDACTED FOR PRIVACY>
</peer-fingerprint>

# notify clients when you restart the server to reconnect quickly
explicit-exit-notify 1

# 1400 avoids problems of too big packets after VPN encapsulation
tun-mtu 1400

# ping every 10s, restart if no data received for 2 minutes
keepalive 10 120
ping-timer-rem
persist-tun

verb 1
log /var/log/openvpn_0

Any idea how to make the server just idle until a client is connected?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions