InMotion Hosting Support Center

How to open new port with SSH putty?

Category: Whm

2013-05-17 5:27 am EST

Hits: 9,735
I had installed openfire in VPS using SSH.. but cor client connection need to open some ports

Using $vi /etc/sysconfig/iptables I had added below lines

-A INPUT -p tcp -i eth0 --dport 5222 -j ACCEPT
-A INPUT -p udp -i eth0 --dport 5222 -j ACCEPT
-A INPUT -p tcp -i eth0 --dport 7777 -j ACCEPT
-A INPUT -p udp -i eth0 --dport 7777 -j ACCEPT
-A INPUT -p tcp -i eth0 --dport 9090 -j ACCEPT
-A INPUT -p udp -i eth0 --dport 9090 -j ACCEPT
-A INPUT -p tcp -i eth0 --dport 9091 -j ACCEPT
-A INPUT -p udp -i eth0 --dport 9091 -j ACCEPT

After this I had restarted configurations by

$iptables-restore < /etc/sysconfig/iptables

Still port not working.. so please help me out.

You must login before you can ask a follow up question.

You must login before you can submit an answer.



5,399 Points
2013-05-17 8:28 am EST
Hi hareshvidja,

It looks like we didn't have any documentation showing how to open a port on your server, so I wrote the following guide for you:

<a href=''>Opening a Port</a>

I hope this helps, be sure to let me know if you have any follow up questions.

- Brad

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!