From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martijn Lievaart Subject: Re: safely apply new rulesets: iptables-apply Date: Wed, 16 Apr 2008 23:56:29 +0200 Message-ID: <4806760D.3040909@rtij.nl> References: <20080304231606.GA16376@piper.oerlikon.madduck.net> <20080310110209.GB17757@piper.oerlikon.madduck.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Jan Engelhardt Cc: martin f krafft , netfilter discussion list Jan Engelhardt wrote: > echo "Applying new rules..."; > iptables-restore if [ "$?" -ne 0 ]; then > echo "Dude, that failed horribly. (Old rules still intact.)"; > exit 1; > fi Are you sure? I think it may have committed some tables already and errored on another. M4