disable icmp ratelimit
Otherwise, traceroute mysteriously times out sometimes. https://twitter.com/zekjur/status/924248132837347330
This commit is contained in:
parent
ce66287189
commit
db15477448
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user