2013/2/26 Jan Engelhardt <jengelh@xxxxxxx>: > > On Tuesday 2013-02-26 17:18, Jonh Wendell wrote: >> >>My particular use case is: I want to flush all iptables rules except >>those ones from a specific chain. >>So, I save them with iptables-save -C <chain-name>, flush, and then >>run iptables-restore on them. > > But if chain-name is not a base chain, then you wipe out the > main rules for all practical purposes. actually, after flush all rules, I load a preset set of rules and only then I run iptables-restore. -- Jonh Wendell http://www.bani.com.br -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html