summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/firewall/conntrack-table-size/node.def5
-rw-r--r--templates/firewall/node.def5
2 files changed, 9 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
diff --git a/templates/firewall/node.def b/templates/firewall/node.def
index daa8a51..4b825c6 100644
--- a/templates/firewall/node.def
+++ b/templates/firewall/node.def
@@ -16,3 +16,8 @@ delete: # set conntrack table size to standard 16384 entries if fw disabled
/etc/modprobe.d/vyatta_nf_conntrack"
echo "Conntrack hash size set to default 4096. This change will take affect when the system is rebooted."
fi
+
+ # 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