iptables: Chain already exists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

In my iptables script I have the following chains:

# ---LET MAKE SOME CHAINS---
 #...[LOGDROP]...
 iptables -N LOGDROP
 iptables -A LOGDROP -j LOG
 iptables -A LOGDROP -j DROP
 #...[LOGACCEPT]...
 iptables -N LOGACCEPT
 iptables -A LOGACCEPT -j LOG
 iptables -A LOGACCEPT -j ACCEPT


When I re-apply (./iptables.script) I get the following error
iptables: Chain already exists
iptables: Chain already exists

Tried flushing the rules first then re-running and I always get that
error. I guess something is wrong with the chain. Can someone more
experienced explain what the issue here is? I'm primarily from a Cisco
PIX background and just started on iptables.

BTW the OS is ubuntu 6.02 server edition.

Thanks in advance

George
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux