From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Bligh Subject: Re: How to programatically atomically write one CHAIN (not table) Date: Thu, 05 May 2011 16:17:56 +0100 Message-ID: References: <0960E691FF860DE35219EA38@nimrod.local> Reply-To: Alex Bligh Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Jan Engelhardt Cc: netfilter@vger.kernel.org, Alex Bligh --On 5 May 2011 16:08:53 +0200 Jan Engelhardt wrote: > do_command alone does not commit the result. > restore is right in what it does. Ah OK - have reread the source and now understand. So a pipe to iptables-restore with "-n" on the command line, and "-F" inside the chain to replace is the right way to go? -- Alex Bligh