Skip to content

Commit

Permalink
release: update sysctl defaults to match AL2
Browse files Browse the repository at this point in the history
In the 5.10 kernel, the settings for `net.ipv4.ip_default_ttl` and
`net.ipv4.tcp_wmem` are no longer applied by patching the kernel.

Add them to sysctl defaults to keep the same values for both kernels.

Signed-off-by: Ben Cressey <[email protected]>
  • Loading branch information
bcressey committed Apr 28, 2021
1 parent e0af06e commit cfb32fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/release/release-sysctl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ net.ipv6.neigh.default.gc_thresh2 = 15360
net.ipv4.neigh.default.gc_thresh3 = 16384
net.ipv6.neigh.default.gc_thresh3 = 16384

# Increasing to account for skb structure growth since the 3.4.x kernel series
net.ipv4.tcp_wmem = 4096 20480 4194304

# Bumped the default TTL to 255 (maximum)
net.ipv4.ip_default_ttl = 255

## Bottlerocket settings ##
# Enable IPv4 forwarding for container networking.
net.ipv4.conf.all.forwarding = 1
Expand Down

0 comments on commit cfb32fc

Please sign in to comment.