BLOG HOME -  UK WEB HOSTING -  PHP MYSQL HOSTING -  RESELLER HOSTING -  eUKhost FORUMS -  VPS HOSTING

How to open port on server.

Hello Friends,

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.

you can verify the port with

netstat -nap | grep :

1.you can open TCp port with

iptables -A INPUT -p tcp –dport
-j ACCEPT

2. You can open UDP port with

iptables -A INPUT -p udp –sport
-j ACCEPT

after that

3 service iptables save

and for flushhing iptables us

iptables -F

digg this


This post is compiled by eUKhost.com

1 Comment »

  1. Peter said,

    November 26, 2006 @ 4:51 pm

    hi, I want to open the UDP ports number 21540 and 54468 that I need to play an online game because now everytime I try to play online it says “Cant Connect to server”, I did “iptables -A INPUT -p udp –sport 54468 -j ACCEPT” but it says “bad argument 54468″ the same when I try the port 21540, I dont know why, can you help me? please

RSS feed for comments on this post · TrackBack URI

Leave a Comment

You must be logged in to post a comment.