How To Open Ports on Dedicated Server

Normally we have to open certain port if we want to use it for running some required  application through it. The mentioned below steps can help you to do so : –

If you are using CSF firewall then login to your dedicated server website hosting as root and just locate csf.conf file which you will have to edit for the enabling required port to open.

For CSF Firewall , the config is located at : /etc/csf/csf.conf

If you are using APF firewall then the config is located at : /etc/apf/conf.apf Where you need to specify the required port number which you want to keep open for some particular application.

Once done make sure you restart firewall after editing above config files.

For CSF:  /etc/init.d/csf restart   /  csf –r

and for APF:   /etc/init.d/apf restart  /   apf –r

That’s all you have successfully opened required port of your dedicated server website hosting. By using telnet command ( telnet IP port number ) you can verify if that particular port is opened or not.

Posted under website hosting

This post was written by admin on April 10, 2010

Tags: , ,

Allow users to execute GET command on Server

If you want to allow few users who can fire get command on your server then you can do so easily using following steps, you can easily allow only selected/required users in particular group to run GET commands on your server :

First create a group on the server
]# groupadd getgrp
Now execute permission to group
]# chmod 750 /usr/bin/GET
Add this group to GET file.
]# chown root.getgrp /usr/bin/GET
To check the permission of GET
]# ll -ld /usr/bin/GET
If you want to add users to getgrp so that they can get execute permission on GET. Make sure getgrp should be secondary group of that user. For eg we will consider myuser1 as user for whom we want to grant permission.
]# gpasswd -M myuser1 getgrp
You need to check if the user is added
]# cat /etc/group | grep getgrp
For some reason if you want to add another user say myuser2 then make sure that you have to mention both myuser1 and myuser2 in your command as :
]# gpasswd -M myuser1,myuser2 getgrp
If you don’t mention both the user, this command will replace all the users with the user mentioned in your command. Its always recommended to run the cat command before adding any user so that you know how many users are already added. Or you can just edit the /etc/group file and add the user in the getgrp line.
Thus using above steps you can allow only root, myuser1 and myuser2 to execute GET command on your server and all other users will be denied for using GET command.

Posted under Reseller Hosting, WHM cpanel Hosting, cPanel account Hosting

This post was written by admin on January 20, 2009

Tags: , ,