Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.