Maintaining idle connections

We recommend that you configure the following keepalive parameters on connection gateway devices to improve connection stability:

To configure keepalive parameters:

  1. Open the /etc/sysctl.conf file.
  2. Add the following parameter values:

    net.ipv4.tcp_keepalive_intvl = 1

    net.ipv4.tcp_keepalive_probes = 10

    net.ipv4.tcp_keepalive_time = 900

  3. Run the following command to update keepalive parameters:

    sudo sysctl -p /etc/sysctl.conf

  4. Run the following commands to ensure that parameter values have been applied:

    sudo sysctl net.ipv4.tcp_keepalive_intvl

    sudo sysctl net.ipv4.tcp_keepalive_probes

    sudo sysctl net.ipv4.tcp_keepalive_time

Page top