I am under a DDOS attack. I'm trying to locate the IP address that is making 1100+ connections, however, when running the following command, it shows a 1100+ connection, but the ip address column is blank. By the way, I'm using CSF firewall to block connections.
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
This is what it returns. Notice the blank column next to "1157".
1 xxx.xx.xx.xxx
1 xx.xxx.xxx.xx
2 xx.xxx.xxx.xxx
2 xx.xx.xxx.xxx
3 xx.xxx.xxx.xx
63 xx.xxx.xxx.xxx
1157
How can I find that missing IP address?
Thanks.