* Deleting a rule from a DNAT chain
@ 2005-03-23 15:04 Eugene Joubert
2005-03-24 0:25 ` Grant Taylor
0 siblings, 1 reply; 3+ messages in thread
From: Eugene Joubert @ 2005-03-23 15:04 UTC (permalink / raw)
To: netfilter
Hi,
I'm a little rusty. I need to delete a rule from a NAT user defined
chain. The chain is called PortForwarding_3191. I know to use -D but my
syntax is up to crap.
I did not create the rule myself as it was created by some sort of
webinterface.
Any help on the syntax will be appreciated.
Regards,
Eugene
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Deleting a rule from a DNAT chain
2005-03-23 15:04 Deleting a rule from a DNAT chain Eugene Joubert
@ 2005-03-24 0:25 ` Grant Taylor
2005-03-24 14:37 ` Toby
0 siblings, 1 reply; 3+ messages in thread
From: Grant Taylor @ 2005-03-24 0:25 UTC (permalink / raw)
To: Eugene Joubert; +Cc: netfilter
iptables -t nat -D PortForwarding_3191 <rule number from the top of the list starting with 1>
Grant. . . .
Eugene Joubert wrote:
> Hi,
>
> I'm a little rusty. I need to delete a rule from a NAT user defined
> chain. The chain is called PortForwarding_3191. I know to use -D but my
> syntax is up to crap.
> I did not create the rule myself as it was created by some sort of
> webinterface.
> Any help on the syntax will be appreciated.
>
> Regards,
> Eugene
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Deleting a rule from a DNAT chain
2005-03-24 0:25 ` Grant Taylor
@ 2005-03-24 14:37 ` Toby
0 siblings, 0 replies; 3+ messages in thread
From: Toby @ 2005-03-24 14:37 UTC (permalink / raw)
To: netfilter
Grant Taylor wrote:
> iptables -t nat -D PortForwarding_3191 <rule number from the top of the
> list starting with 1>
That is correct.
To simplify things, first open a large xterm and do:
iptables -t nat -L PortForwarding_3191 -n -v --line-numbers
and look up the rule number. Then use:
iptables -t nat -D PortForwarding_3191 <rule num>
Just make sure that you're deleting that from the startup scripts or
whatever it is that loads the rules when you reboot the machine.
Toby
--
Love(n): The delusion that one woman differs from another.
H.L. Mencken
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-24 14:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-23 15:04 Deleting a rule from a DNAT chain Eugene Joubert
2005-03-24 0:25 ` Grant Taylor
2005-03-24 14:37 ` Toby
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.