LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 02: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, 02:16 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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 02:48 PM
iptables FLOOD FLAGS and INVALID chains - need another module? MadCactus Linux - Security 3 11-19-2003 08:26 AM
how packets traverse thru iptables chains? hardigunawan Linux - Security 1 01-09-2003 01:50 AM
IP chains? Statement Linux - Networking 4 03-11-2002 03:00 PM
ip chains iquadri1 Linux - Networking 0 09-29-2001 02:09 PM

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

All times are GMT -5. The time now is 04:47 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