summaryrefslogtreecommitdiff
path: root/templates/firewall/conntrack-table-size/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/firewall/conntrack-table-size/node.def')
-rw-r--r--templates/firewall/conntrack-table-size/node.def5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/firewall/conntrack-table-size/node.def b/templates/firewall/conntrack-table-size/node.def
index 19d2b68..c0a7e9c 100644
--- a/templates/firewall/conntrack-table-size/node.def
+++ b/templates/firewall/conntrack-table-size/node.def
@@ -29,7 +29,10 @@ syntax:expression: ($VAR(@) >= 1 && $VAR(@) <= 50000000) ; "Value must be betwee
update:
sudo sh -c "echo $VAR(@) > \
/proc/sys/net/nf_conntrack_max"
-
+ # need to restart conntrackd with updated conntrack table size
+ if [ -d $VYATTA_ACTIVE_CONFIGURATION_DIR/service/conntrack-sync ] ; then
+ sudo /opt/vyatta/sbin/vyatta-conntrack-sync.pl --action=enable
+ fi