summaryrefslogtreecommitdiff
path: root/templates/firewall/conntrack-table-size
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2010-05-20 19:27:35 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2010-05-20 19:27:35 -0700
commita20ef215fd926de089a7ee012cccead4009ba5ba (patch)
treeca99b62a85dfafe9b490a646339db1b420541b2b /templates/firewall/conntrack-table-size
parent83a291714048eba9517926961ee70c9b9d2d2a29 (diff)
downloadvyatta-cfg-firewall-a20ef215fd926de089a7ee012cccead4009ba5ba.tar.gz
vyatta-cfg-firewall-a20ef215fd926de089a7ee012cccead4009ba5ba.zip
need to restart conntrackd when conntrack table size changes
Diffstat (limited to 'templates/firewall/conntrack-table-size')
-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