Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-24-2004, 12:50 PM   #1
LQ Newbie
Registered: Jul 2004
Posts: 26

Rep: Reputation: 15
open ports with 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, 04:24 PM   #2
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
As you want to open port 10000 I assume you already have webmin.

Connect to and login as your webmin user, go to Network, then linux firewall.

you can add a rule that accepts connections when the destination port is 10000 ( you will also have to specify TCP as the network protocol) - Thats the same same as opening port 10000 through iptables.
Old 12-27-2004, 07:54 AM   #3
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

Rep: Reputation: 34
/sbin/iptables -A INPUT -i eth0 -m state --state NEW,ESTABLISHED,RELATED -p tcp -s -d --dport 10000 -j ACCEPT
replace eth0 with your external interface device (which is probably eth0)
replace with your external IP
replace with allowable IP network ( means everyone )


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
How can I open up ports in iptables? ekerik Linux - Networking 13 10-07-2009 12:00 PM
Open All Ports - iptables Artik Linux - Networking 2 06-21-2005 04:17 PM
ports open with iptables saugato Linux - Security 3 04-19-2005 02:31 AM
open ports with iptables? tykkea811 Linux - Networking 2 12-12-2004 02:43 AM
Iptables: Open some ports! Abomm Linux - Networking 2 05-31-2002 02:49 AM

All times are GMT -5. The time now is 12:02 AM.

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