Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调整nf_conntrack hashsize参数,重启服务器后nft list ruleset没有规则 #26

Open
aipeach opened this issue Jul 26, 2024 · 0 comments

Comments

@aipeach
Copy link

aipeach commented Jul 26, 2024

调整了以下参数,重启之后发现没有规则生成,经排查是因为设置了/etc/modprobe.d/nf_conntrack_hashsize.conf 这个导致的,如果我需要设置该参数,怎么能不出问题呢

/etc/sysctl.conf

net.netfilter.nf_conntrack_max = 262144
cat > /etc/modprobe.d/nf_conntrack_hashsize.conf << "EOF"
options nf_conntrack hashsize = 262144
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant