diff options
Diffstat (limited to 'templates-cfg')
-rw-r--r-- | templates-cfg/system/conntrack/timeout/custom/node.def | 12 | ||||
-rw-r--r-- | templates-cfg/system/conntrack/timeout/custom/rule/node.def | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/templates-cfg/system/conntrack/timeout/custom/node.def b/templates-cfg/system/conntrack/timeout/custom/node.def index c8e5841..7967ead 100644 --- a/templates-cfg/system/conntrack/timeout/custom/node.def +++ b/templates-cfg/system/conntrack/timeout/custom/node.def @@ -1 +1,13 @@ help: Define custom timeouts per flow +end: if sudo /opt/vyatta/bin/sudo-users/vyatta-conntrack-timeouts.pl --update 'true'; + then + if [ ${COMMIT_ACTION} = 'DELETE' ] ; + then + sudo /opt/vyatta/bin/sudo-users/vyatta-conntrack-timeouts.pl --delete 'true'; + fi + else + exit 1; + fi + +create: sudo /opt/vyatta/bin/sudo-users/vyatta-conntrack-timeouts.pl --create 'true' + diff --git a/templates-cfg/system/conntrack/timeout/custom/rule/node.def b/templates-cfg/system/conntrack/timeout/custom/rule/node.def index c31dfbd..077603e 100644 --- a/templates-cfg/system/conntrack/timeout/custom/rule/node.def +++ b/templates-cfg/system/conntrack/timeout/custom/rule/node.def @@ -4,6 +4,6 @@ type: u32 help: Rule number (1-9999) -syntax:expression: $VAR(@) > 0 && $VAR(@) <= 9999; "firewall rule number must be between 1 and 9999" +syntax:expression: $VAR(@) > 0 && $VAR(@) <= 9999; "Custom timeout rule number must be between 1 and 9999" val_help: u32:1-9999; Rule number |