I have a game server and someone is spamming it with bots. The SpamBot client makes the handshake with my server using UDP connections. It does this through a list of proxies. Basically, the Spambot Client sends lots of UDP packets to my server and spams it with bots.
Now I've got 6 big lists of proxies that I know the person who spambots me uses them. I can write a shell script to block every IP from every list. Every IP is on a new line, so it's pretty easy to do it with a for loop.
The problem is that I'm concerned about the performance of my server. If I'll block 15k IP addresses, is that going to affect my server's performance?
At the moment, I run CentOS 7. Can you tell me if IP Tables is the good way to go, or what other alternatives should I try? Please write the commands, too. I just want my server to stop responding to these IP addresses, to not establish any connections with them.