LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


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

Rep: Reputation: 15
open ports with iptables?


hello
i want to open the port 10000 by using iptables.please help me to provide the iptables rule
thank u
 
Old 12-24-2004, 03:24 PM   #2
skunkburner
Member
 
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 127.0.0.1:10000 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, 06:54 AM   #3
this213
Member
 
Registered: Dec 2001
Location: ./
Distribution: Fedora, CentOS, RHEL, Gentoo
Posts: 167

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


Reply



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 11:00 AM
Open All Ports - iptables Artik Linux - Networking 2 06-21-2005 03:17 PM
ports open with iptables saugato Linux - Security 3 04-19-2005 01:31 AM
open ports with iptables? tykkea811 Linux - Networking 2 12-12-2004 01:43 AM
Iptables: Open some ports! Abomm Linux - Networking 2 05-31-2002 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:10 PM.

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