Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-24-2004, 11:59 AM   #1
LQ Newbie
Registered: Jul 2004
Posts: 26

Rep: Reputation: 15
open port 10000 by iptables

i want to open the port 10000 by using iptables.please help me to provide the iptables rule
thank u
Old 12-24-2004, 12:36 PM   #2
Registered: Dec 2004
Location: Phoenix, Arizona, USA
Distribution: Debian, RedHat, ???
Posts: 56

Rep: Reputation: 15
Iptables is actually a collection of 3 or more filters or tables - INPUT, FORWARD and OUTPUT. For this, I'll assume it's an input to port 10000 you are looking for.

When you wish to specify a port number or range of ports, you must also specify a protocol - TCP, UDP, ICMP, ALL.

so the command line might look something like this:

iptables --append INPUT --protocol ALL --source-port 10000 --jump ACCEPT

Which reads "append the INPUT filter to ACCEPT ALL protocols with packets with which are destined for port 10000"

Hope this helps some

Old 12-24-2004, 12:55 PM   #3
Registered: Dec 2004
Location: Phoenix, Arizona, USA
Distribution: Debian, RedHat, ???
Posts: 56

Rep: Reputation: 15
Oops! I'm sorry I must have been falf asleep! It seems that you must specify a protocol - TCP or UDP. so that the rule might look like this:

# iptables --append INPUT --protocol TCP --source-port 10000 --jump ACCEPT

And if you need UDP it would be:

# iptables --append INPUT --protocol UDP --source-port 10000 --jump ACCEPT

But if you need both, then you would use both commands:

# iptables --append INPUT --protocol TCP --source-port 10000 --jump ACCEPT
# iptables --append INPUT --protocol UDP --source-port 10000 --jump ACCEPT


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables - incomming port to external port - possible? ziggie216 Linux - Software 1 07-13-2006 02:08 PM
Iptables help, block port to outside but open to inside. Brian1 Linux - Networking 2 09-27-2005 08:41 PM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 08:44 AM
webmin port 10000 not going through kevinm2 Linux - Software 3 08-19-2004 12:29 PM
Squid blocks port 10000 sigma957 Linux - Security 1 09-29-2003 04:11 AM

All times are GMT -5. The time now is 01:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration