diff options
-rw-r--r-- | templates-cfg/nat/rule/node.tag/inbound-interface/node.def | 7 | ||||
-rw-r--r-- | templates-cfg/nat/rule/node.tag/outbound-interface/node.def | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/templates-cfg/nat/rule/node.tag/inbound-interface/node.def b/templates-cfg/nat/rule/node.tag/inbound-interface/node.def index 43c2998..03466b9 100644 --- a/templates-cfg/nat/rule/node.tag/inbound-interface/node.def +++ b/templates-cfg/nat/rule/node.tag/inbound-interface/node.def @@ -20,4 +20,11 @@ commit:expression: exec " fi let i++ done + intf_group_name_array=\"eth+ bond+ br+ peth+ vtun+ tun+ wlm+ wlan+\" + i=0 + for i in $intf_group_name_array; do + if [ \"$i\" == \"$VAR(@)\" ]; then + exit 0 + fi + done echo NAT configuration warning: interface $VAR(@) does not exist on this system " diff --git a/templates-cfg/nat/rule/node.tag/outbound-interface/node.def b/templates-cfg/nat/rule/node.tag/outbound-interface/node.def index fa432cf..efbd9c3 100644 --- a/templates-cfg/nat/rule/node.tag/outbound-interface/node.def +++ b/templates-cfg/nat/rule/node.tag/outbound-interface/node.def @@ -20,4 +20,11 @@ commit:expression: exec " fi let i++ done + intf_group_name_array=\"eth+ bond+ br+ peth+ vtun+ tun+ wlm+ wlan+\" + i=0 + for i in $intf_group_name_array; do + if [ \"$i\" == \"$VAR(@)\" ]; then + exit 0 + fi + done echo NAT configuration warning: interface $VAR(@) does not exist on this system " |