I'm new to all of this.
I'm running Ubuntu 12.10 x64. I recently wrote a program in C++ that accepts TCP connections on port 57370, and it is running as a daemon (I used this guide). It's not very complicated; it just waits for connections and reads a line. However, somebody keeps sending binary garbage to my server on this port, and I logged that person's IP address.
I added the IP to my
/etc/hosts.deny file (the line was
ALL: IP_ADDRESS), but it doesn't seem to do anything. I made sure to put a newline after it. I am still seeing connections from this person, and this person still manages to waste my server's bandwidth.
I read online that I have to register my program as a daemon in order to use
hosts.deny, but how would I do that? Should I just use
ufw instead? Any and all help would be appreciated.