This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Block Socket ports in Kernel

Guru 20755 points
Hello, I would like to add security to the networking of the embedded linux. I wanted to know what is the way to block all socket port numbers and allow only relevant ports for udp and tcp communication. I will also need to block certain capabilities from kernel (ftp, etc) to make it less vulnerable. Thank you very much, Ran