Hi, and welcome
actually that's not the purpose of the /etc/services file, it's only there to define what protocol is what port#, so that the "ftp" command for example, knows it has to connect to port 21. Some programs don't use this file and directly connect to 21, without consulting /etc/services... as you noticed.
The solution is to block it in the firewall. Maybe RedHat has same program for configuring the firewall, I'm not sure. But if it doesn't, here's how you can do it in the shell:
Code:
iptables -A OUTPUT -p tcp --destination-port 21 -j DROP
This will DROP (block) all OUTgoing tcp traffic to (remote) port 21.
Likewise,
Code:
iptables -A INPUT -p tcp --destination-port 21 -j DROP
drops all incoming traffic to your ftp port.
Again, it's possible Redhat has some gui config program for this too, better check that out first
hope this helped, feel free to ask for more clarification