Re: safely apply new rulesets: iptables-apply

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

 



Jan Engelhardt wrote:
echo "Applying new rules...";
iptables-restore <new.txt;
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

--
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