How to adjust system keepalives

Knowledge Drop

Last tested: Jul 4, 2018
 

In order to comply with our recommended settings for system TCP keepalives, you may need to adjust the values. In order to do so, run the following, you will need to have sudo permisisons.

Open up the file where these settings changes live:

sudo vim /etc/sysctl.conf

add the line:

net.ipv4.tcp_keepalive_time=200

and save the file.

Then in order for those changes to come into effect, run:

sudo sysctl --system

This content is subject to limited support.                

Version history
Last update:
‎07-07-2021 01:15 PM
Updated by: