LinuxQuestions.org
Visit Jeremy's Blog.
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-20-2005, 03:27 AM   #1
80mail
LQ Newbie
 
Registered: Jul 2005
Posts: 19

Rep: Reputation: 0
How to delete the one of iptables chains?


Dear all,
My nat Chain PREROUTING is following. How to delete the one of chains? Thanks for any ideas.



Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT udp -- anywhere anywhere udp dpt:telnet to:192.168.1.218:23
DNAT udp -- anywhere anywhere udp dpt:telnet to:192.168.1.218:23
DNAT tcp -- anywhere anywhere tcp dpt:telnet to:192.168.1.218:23
DNAT tcp -- anywhere anywhere tcp dpt:telnet to:192.168.1.218:23
DNAT tcp -- anywhere anywhere tcp dpt:telnet to:192.168.1.218:23
DNAT udp -- anywhere anywhere udp dpt:telnet to:192.168.1.218:23


Tommy
 
Old 12-21-2005, 03:16 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,218
Blog Entries: 1

Rep: Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073Reputation: 2073
If you want to delete of of the rules under the chain PREROUTING, run:
Code:
iptables -D PREROUTING rulenum
where rulenum is the number of the rule you want to delete. For more details
Code:
man iptables
 
  


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 how to add/edit/delete rules in existing chain? debug019 Linux - Newbie 1 11-11-2004 03:48 PM
iptables FLOOD FLAGS and INVALID chains - need another module? MadCactus Linux - Security 3 11-19-2003 09:26 AM
how packets traverse thru iptables chains? hardigunawan Linux - Security 1 01-09-2003 02:50 AM
IP chains? Statement Linux - Networking 4 03-11-2002 04:00 PM
ip chains iquadri1 Linux - Networking 0 09-29-2001 03:09 PM

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

All times are GMT -5. The time now is 09:48 AM.

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