From 1330898ed095b42b6aba7ba00f9a6932b241a230 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 12 May 2020 19:23:15 +0200 Subject: nat: T2198: add ipv4-{address,prefix,rage}-exclude validators Exclude validators are required to support the ! (not) operator on the CLI to exclude addresses from NAT. --- src/validators/ipv4-range-exclude | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 src/validators/ipv4-range-exclude (limited to 'src/validators/ipv4-range-exclude') diff --git a/src/validators/ipv4-range-exclude b/src/validators/ipv4-range-exclude new file mode 100755 index 000000000..3787b4dec --- /dev/null +++ b/src/validators/ipv4-range-exclude @@ -0,0 +1,7 @@ +#!/bin/sh +arg="$1" +if [ "${arg:0:1}" != "!" ]; then + exit 1 +fi +path=$(dirname "$0") +${path}/ipv4-range "${arg:1}" -- cgit v1.2.3