LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-18-2008, 04:34 AM   #1
dkn4a1
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Rep: Reputation: 0
Unhappy Which is the chain name in iptables


Hi all,

i hav queued a lot rules in my iptable.
and i want to replace one.
i have found that i can do so with
iptables -E
but sytax is -E old-chain-name new-chain-name

what is the chain name in iptables?

plz help i dont wish to flush all the things.

any help will be appreciated.
 
Old 09-19-2008, 04:34 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
chain name, is the one that comes after the word "Chain"
when you run "iptables -L", like:

Chain FORWARD (policy ACCEPT)
...
...
...
 
Old 09-20-2008, 09:03 AM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,171

Rep: Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506
The best way to maintain iptables is to build a bash script which enters iptables rules one by one.
It is much easier to do than printing out the current rule set and making changes, especially if the number of rules get larger than 30 or so.
With the script you start by flushing everything, and you are sure you enter into iptables exactly what is in your script.

jlinkels
 
Old 09-21-2008, 08:39 PM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,402

Rep: Reputation: 1131Reputation: 1131Reputation: 1131Reputation: 1131Reputation: 1131Reputation: 1131Reputation: 1131Reputation: 1131Reputation: 1131
(Shrug...) For better or worse, I use Shorewall.

Anyhow: a "chain name" is basically just a moniker. It's a way to name and group rules.
 
Old 09-22-2008, 05:23 AM   #5
dkn4a1
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
tahnx all...
i got it
 
  


Reply


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: No chain/target/match by that name - with 2.6.17.7 tp11235 Linux - Kernel 10 03-24-2010 02:15 AM
iptables: No chain/target/match by that name schatoor Linux - Networking 6 01-04-2009 09:10 PM
userdefined chain in iptables yawe_frek Red Hat 2 11-28-2006 06:20 AM
iptables chain modification gizza23 Linux - Networking 2 07-10-2005 05:45 AM
iptables and LD chain spawing? lode Linux - Networking 8 04-21-2004 03:30 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration