iptables is the important thing to create different rules on Linux system.you can allow as well as deny any port through iptables.