Here is an handy solution to open ports on a Linux Operating System :
First, you will need to login as Root and type /usr/sbin/lokkit
Remember you need full SSH root access on the dedicated server or virtual private server.
From the menu, select custom. leave blank next to ethport or mark if you need to allow traffic. Then, mark all services which required remote access. Thereafter add additional ports by typing XX:tcp XX:udp ( xx : port number )
Save the configuration. That's all!