diff options
-rw-r--r-- | templates/load-balancing/wan/disable-source-nat/node.def | 1 | ||||
-rw-r--r-- | templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def | 11 |
2 files changed, 2 insertions, 10 deletions
diff --git a/templates/load-balancing/wan/disable-source-nat/node.def b/templates/load-balancing/wan/disable-source-nat/node.def new file mode 100644 index 0000000..eabfd8e --- /dev/null +++ b/templates/load-balancing/wan/disable-source-nat/node.def @@ -0,0 +1 @@ +help: Set to disable source nat rules from being configured for wan load balancing. diff --git a/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def b/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def index 8ed225f..cb0b953 100644 --- a/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def +++ b/templates/load-balancing/wan/rule/node.tag/inbound-interface/node.def @@ -1,12 +1,3 @@ type: txt help: Set inbound interface name -syntax:expression: exec " \ - if [ -z \"`ip link | grep $VAR(@)`\" ]; then \ - echo Invalid interface [$VAR(@)]; \ - exit 1 ; \ - fi ; " -allowed: for dev in /sys/class/net/*; - do if [[ ! $dev =~ "net/lo" ]]; then - echo -n ${dev##*/} " " - fi - done +comp_help: Enter a network interface name, for example, "eth0" |