From 4daf13e96ef00fea7ad2655138c30c3f3c459cd7 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sun, 11 Nov 2018 11:02:32 +0100 Subject: T888: adjust the sysctl paths for the conntrack TCP loose option. --- templates-cfg/system/conntrack/tcp/loose/node.def | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'templates-cfg/system/conntrack') diff --git a/templates-cfg/system/conntrack/tcp/loose/node.def b/templates-cfg/system/conntrack/tcp/loose/node.def index 2c94a31..f84b786 100644 --- a/templates-cfg/system/conntrack/tcp/loose/node.def +++ b/templates-cfg/system/conntrack/tcp/loose/node.def @@ -28,9 +28,9 @@ update: sudo modprobe nf_conntrack_ipv4 fi if [ "$VAR(@)" = "enable" ]; then - sudo sysctl -q -w net/ipv4/netfilter/ip_conntrack_tcp_loose=1 + sudo sysctl -q -w net.netfilter.nf_conntrack_tcp_loose=1 elif [ "$VAR(@)" = "disable" ]; then - sudo sysctl -q -w net/ipv4/netfilter/ip_conntrack_tcp_loose=0 + sudo sysctl -q -w net.netfilter.nf_conntrack_tcp_loose=0 else echo "Invalid parameter: $VAR(@)" exit 1 @@ -40,11 +40,4 @@ delete: if [ ! -e /proc/sys/net/netfilter/nf_conntrack_tcp_loose ]; then sudo modprobe nf_conntrack_ipv4 fi - sudo sysctl -q -w net/ipv4/netfilter/ip_conntrack_tcp_loose=1 - - - - - - - + sudo sysctl -q -w net.netfilter.nf_conntrack_tcp_loose=1 -- cgit v1.2.3