Skip to content

Commit

Permalink
handle sysctl call for older kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
toralf committed May 23, 2024
1 parent 306505e commit 39c2268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipv4-rules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function addHetzner() {
}

function setSysctlValues() {
sysctl -q -w net.netfilter.nf_conntrack_max=$((2 ** 21))
sysctl -q -w net.netfilter.nf_conntrack_max=$((2 ** 21)) || sysctl -q -w net.nf_conntrack_max=$((2 ** 21))
sysctl -q -w net.ipv4.tcp_syncookies=1

# make tcp_max_syn_backlog big enough to have ListenDrops being low or 0:
Expand Down

0 comments on commit 39c2268

Please sign in to comment.