title: Too many TIME_WAIT from 127.0.0.1
body: <p>I'm a noob for managing linux server. So if you reply please use simple words.</p>
  
  <p>Since 24H my server is very slow and my CPU is >100%, I'm regularly ddoss attack by script kiddies. So i put this cmd in putty to check if I'm under attack : <code>netstat -antu | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | sort -n</code></p>
  
  <p>An I saw many connections from 127.0.0.1</p>
  
  <p><img src="https://i.stack.imgur.com/qafeN.jpg" alt="putty"></p>
  
  <p>After that I put this command : <code>netstat -np | grep 127.0.0.1</code></p>
  
  <p><img src="https://i.stack.imgur.com/7rVPm.jpg" alt="enter image description here"></p>
  
  <p>You can see there are many TIME_WAIT and I suppose i'ts bad. I'm not sure too read correctly, but all TIME_WAIT come from mysql, no ? I searched on Google but many of replies it's because you don't close mysql after a query. But I'm using Symfony2 with doctrine so I suppose doctrine make a good job and I didn't change a query since 2 weeks.</p>
  
  <p>I've no idea what to do for fixing this problem.</p>
  
  <p><strong>EDIT</strong> <code>netstat -nap -A inet</code></p>
  
  <p><img src="https://i.stack.imgur.com/Zz7JV.jpg" alt="enter image description here"></p>