All the ports should already be open. which OS are you using?Are there any way(s) to open or close a port in VPS?
I am using Putty program. Thanks
If I don't use CSF then is there a way to do that in SSH?Hi there,
What distro and firewall are you using?
If you're using CSF, open the csf.conf file and go to TCP_IN and you'll see the lists of ports that are open.
You can check if the port is open / closed, by entering the IP address of the server and port number, using this website: http://www.yougetsignal.com/tools/open-ports/
Hope that helps!
Normally I use Linux and install Centos 6 on it.All the ports should already be open. which OS are you using?
For a simple example, lets look at bittorrent. Bittorrent uses the tcp protocol on port 6881, so we would need to allow all tcp packets on destination port (the port on which they arrive at our machine) 6881:Normally I use Linux and install Centos 6 on it.
Does it have any difference to check ports on different OS?
Here we append (-A) a rule to the INPUT chain for packets matching the tcp protocol (-p tcp) and entering our machine on destination port 6881 (--dport 6881).# Accept tcp packets on destination port 6881 (bittorrent)
iptables -A INPUT -p tcp --dport 6881 -j ACCEPT
# Accept tcp packets on destination ports 6881-6890
iptables -A INPUT -p tcp --dport 6881:6890 -j ACCEPT
Are there any way(s) to open or close a port in VPS?
I am using Putty program. Thanks
ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.
The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!