summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-12-24 19:34:47 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-12-24 19:34:47 +0000
commit6f1baf6a2adb6fb986b28b8b7ee739cd66322aff (patch)
tree4e4119d8145c4a377eaed01017ac34fffddf077f
parenta4a6414c901e255c331bd38d3f202b9221c058dd (diff)
downloadvyatta-wanloadbalance-6f1baf6a2adb6fb986b28b8b7ee739cd66322aff.tar.gz
vyatta-wanloadbalance-6f1baf6a2adb6fb986b28b8b7ee739cd66322aff.zip
wanloadbalance: T3152: Enable conntrack counters
-rw-r--r--scripts/vyatta-wanloadbalance.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl
index a64d494..f476ac2 100644
--- a/scripts/vyatta-wanloadbalance.pl
+++ b/scripts/vyatta-wanloadbalance.pl
@@ -319,6 +319,9 @@ my $conf_file = '/var/run/load-balance/wlb.conf';
my $conf_lck_file = '/var/run/load-balance/wlb.conf.lck';
`sudo mkdir -p /var/run/load-balance`;
+# Enable conntrack counters
+`sudo sysctl -w net.netfilter.nf_conntrack_acct=1`;
+
####are we just validating?
if (defined $nexthop) {
my $rc = Vyatta::TypeChecker::validateType('ipv4', $nexthop, 1);