> > $iptables -t mangle -P POSTROUTING ACCEPT &&\
> > echo "Policing .......................................... [ OK ]" || {
> > echo "Something broke in 'Policing'!"
> > exit 1
> > }
>
> You don't want to do that, because the term in curled braces is executed
> when *any* of the previous commands fails (including the echo). Better
> use something like this:
well, if 'echo' fails, you're really in troubles and need to fix something
else before running the fw.
--
paolo
--
To UNSUBSCRIBE, email to debian-firewall-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
No comments:
Post a Comment