Clone of 1eada72b with 9bb76094 and e0390bee on top. Signed-off-by: Thomas Woerner <twoerner@xxxxxxxxxx> --- :100644 100644 2731209... c48ddf9... M iptables/ip6tables.c iptables/ip6tables.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/iptables/ip6tables.c b/iptables/ip6tables.c index 2731209..c48ddf9 100644 --- a/iptables/ip6tables.c +++ b/iptables/ip6tables.c @@ -1720,6 +1720,13 @@ int do_command6(int argc, char *argv[], char **table, cs.invert = FALSE; } + if (strcmp(*table, "nat") == 0 && + ((policy != NULL && strcmp(policy, "DROP") == 0) || + (cs.jumpto != NULL && strcmp(cs.jumpto, "DROP") == 0))) + xtables_error(PARAMETER_PROBLEM, + "\nThe \"nat\" table is not intended for filtering, " + "the use of DROP is therefore inhibited.\n\n"); + for (matchp = cs.matches; matchp; matchp = matchp->next) xtables_option_mfcall(matchp->match); if (cs.target != NULL) -- 2.5.5 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html