From 1a431c11cec3a786efbed6f559a5048201c2b5db Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 25 May 2013 18:08:20 +0200 Subject: [PATCH] Fix output rules with "option dest *" --- rules.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.25.1