disable icmp ratelimit

Otherwise, traceroute mysteriously times out sometimes.

https://twitter.com/zekjur/status/924248132837347330
This commit is contained in:
Michael Stapelberg 2022-06-21 18:30:53 +02:00
parent ce66287189
commit db15477448

View File

@ -1038,6 +1038,8 @@ func applySysctl(ifname string) error {
sysctls := []string{ sysctls := []string{
"net.ipv4.ip_forward=1", "net.ipv4.ip_forward=1",
"net.ipv6.conf.all.forwarding=1", "net.ipv6.conf.all.forwarding=1",
"net.ipv4.icmp_ratelimit=0",
"net.ipv6.icmp.ratelimit=0",
} }
if ifname != "" { if ifname != "" {
sysctls = append(sysctls, "net.ipv6.conf."+ifname+".accept_ra=2") sysctls = append(sysctls, "net.ipv6.conf."+ifname+".accept_ra=2")