Webmaster Forum
Go Back   Webmaster forum » ..:: Web Design ::.. » Web Hosting And Server Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 24-06-2009
david david is offline
Member
 
Join Date: Jun 2009
Posts: 75
iTrader: (0)
david is on a distinguished road
Thumbs up 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 : <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

after that

3 service iptables save

and for flushhing iptables us

iptables -F
Reply With Quote
  #2  
Old 08-06-2010
vipin kumar vipin kumar is offline
Member
 
Join Date: Apr 2010
Posts: 31
iTrader: (0)
vipin kumar is on a distinguished road
Default

just search on this forum u will get answer.
Reply With Quote
Reply

Bookmarks

Tags
ports, server, tcp, udp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:40 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.