Following are the commands to open tcp or udp ports on the server.
Before using commands for opening the port please make sure the specific port is already opend and what is the use of that port.
netstat -nap | grep : <port no>
1.you can open TCp port with
iptables -A INPUT -p tcp –dport <port no> -j ACCEPT
2. You can open UDP port with
iptables -A INPUT -p udp –sport <port no> -j ACCEPT
3 service iptables save
and for flushhing iptables us
Like this post ?
Share on your Social Networking Profile ( Facebook, Twitter & Google+ ) and get a flat 10% Recurring discount on our VPS Hosting and Dedicated Servers.
Email us the shared link at : email@example.com or speak to our live chat operator now, by clicking on the “Live Chat” Scroller on the left-hand side of this page and we will provide you with the discount Coupon right away!