diff options
Diffstat (limited to 'templates-cfg/system/conntrack/node.def')
-rw-r--r-- | templates-cfg/system/conntrack/node.def | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates-cfg/system/conntrack/node.def b/templates-cfg/system/conntrack/node.def index 53488ae..2ac9101 100644 --- a/templates-cfg/system/conntrack/node.def +++ b/templates-cfg/system/conntrack/node.def @@ -2,6 +2,11 @@ help: Connection tracking engine options priority: 218 # before NAT and conntrack-sync are configured +end:expression: "if [ -f \"/tmp/vyatta-conntrack-sync\" ]; then \ + sudo /opt/vyatta/sbin/vyatta-conntrack-sync.pl --action=enable; \ + sudo rm \"/tmp/vyatta-conntrack-sync\"; \ + fi" + delete: # set conntrack table size to standard 16384 entries if conntrack settings are removed sudo sysctl -q -w net/nf_conntrack_max=16384 @@ -20,5 +25,5 @@ delete: # set conntrack table size to standard 16384 entries if conntrack settin # need to restart conntrackd with updated conntrack table size if cli-shell-api existsActive service conntrack-sync; then - sudo /opt/vyatta/sbin/vyatta-conntrack-sync.pl --action=enable + touch /tmp/vyatta-conntrack-sync fi |