Ver código fonte

Rate limit for ipv6

Bob Mottram 7 anos atrás
pai
commit
06952d9137
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2
    0
      src/freedombone-utils-mesh

+ 2
- 0
src/freedombone-utils-mesh Ver arquivo

@@ -116,8 +116,10 @@ function mesh_hotspot_ip_address {
116 116
 function global_rate_limit {
117 117
     if ! grep -q "tcp_challenge_ack_limit" /etc/sysctl.conf; then
118 118
         echo 'net.ipv4.tcp_challenge_ack_limit = 999999999' >> /etc/sysctl.conf
119
+        echo 'net.ipv6.tcp_challenge_ack_limit = 999999999' >> /etc/sysctl.conf
119 120
     else
120 121
         sed -i 's|net.ipv4.tcp_challenge_ack_limit.*|net.ipv4.tcp_challenge_ack_limit = 999999999|g' /etc/sysctl.conf
122
+        sed -i 's|net.ipv6.tcp_challenge_ack_limit.*|net.ipv6.tcp_challenge_ack_limit = 999999999|g' /etc/sysctl.conf
121 123
     fi
122 124
     sysctl -p -q
123 125
 }