Turn on the bindv6only function to avoid the use of tcp6 port for services that do not actually need tcp6.
Signed-off-by: Yu Chuan 13186087857@163.com --- sparrow/0-package/common | 1 + 1 file changed, 1 insertion(+)
diff --git a/sparrow/0-package/common b/sparrow/0-package/common index 2c7de3754fad..31588f40b602 100755 --- a/sparrow/0-package/common +++ b/sparrow/0-package/common @@ -10,6 +10,7 @@ grep -q '^committer:' /etc/group || groupadd -g 1999 committer
cat >> /etc/sysctl.conf <<EOF net.ipv4.ip_forward=1 +net.ipv6.bindv6only=1 vm.max_map_count=262144 EOF