From: Jo-Philipp Wich Date: Sat, 25 May 2013 16:08:20 +0000 (+0200) Subject: Fix output rules with "option dest *" X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1a431c11cec3a786efbed6f559a5048201c2b5db;p=oweals%2Ffirewall3.git Fix output rules with "option dest *" --- diff --git a/rules.c b/rules.c index 0f4e925..eea8724 100644 --- a/rules.c +++ b/rules.c @@ -245,7 +245,13 @@ append_chain(struct fw3_ipt_rule *r, struct fw3_rule *rule) } if (rule->dest.set && !rule->src.set) - snprintf(chain, sizeof(chain), "zone_%s_output", rule->dest.name); + { + if (rule->dest.any) + snprintf(chain, sizeof(chain), "delegate_output"); + else + snprintf(chain, sizeof(chain), "zone_%s_output", + rule->dest.name); + } } fw3_ipt_rule_append(r, chain);