Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-10-2004, 09:56 PM   #1
LQ Newbie
Registered: Aug 2004
Distribution: redhat 9
Posts: 20

Rep: Reputation: 0
IPTABLES how to add/edit/delete rules in existing chain?

This the existing chain in my iptable.
How do i add/edit/delete a source/target destination???

I used : iptables -L to view this...

Chain blacklst (4 references)
target prot opt source destination
DROP all -- anywhere
DROP all -- anywhere
DROP all -- anywhere
DROP all -- anywhere
DROP all -- anywhere
DROP all -- anywhere
DROP all -- anywhere
DROP all -- anywhere

Simple question...but it would be really nice to know how to do this..

Old 11-11-2004, 03:48 PM   #2
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Are you using a script to start the ruleset or just the /etc/init.d/iptables setup?

If you are using the RH setup, the saved rules are in /etc/sysconfig/iptables

A good tutorial is http://iptables-tutorial.frozentux.n...-tutorial.html


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 qanopus Linux - Networking 6 01-04-2009 10:10 PM
iptables chain modification gizza23 Linux - Networking 2 07-10-2005 06:45 AM
Process order of iptables chain rules. mrpc_cambodia Linux - Networking 1 07-14-2004 01:21 AM
How do I make a iptables chain with sudo work ? rhawi Linux - General 5 06-10-2004 07:02 PM
iptables and LD chain spawing? lode Linux - Networking 8 04-21-2004 04:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09: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
Open Source Consulting | Domain Registration