Setting TCP keep alive values
- 5 months 3 weeks ago
Hello, I am trying to set the TCP keep alive values in Alpine Linux 3.5 and running into issues. The values are not present in /proc/sys/net/ipv4 and trying to set them via sysctl.conf gives me this error message:
/var/lib/app # sysctl -p
sysctl: error: 'net.ipv4.tcp_keepalive_time' is an unknown key
background: I have an app that is running in an Alpine Linux Docker container deployed in AWS. The traffic is going through a NAT Gateway and it drops the connection if it is idle for more than 5 minutes. Therefore, I would like to enable TCP keep alive messages for this container.