diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-11-11 11:02:32 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-11-11 11:02:32 +0100 |
commit | 4daf13e96ef00fea7ad2655138c30c3f3c459cd7 (patch) | |
tree | 9da7b9b28a9a2b746e97d90dbe657c6aae2296fa /templates-cfg/system/conntrack/tcp | |
parent | e6f60ea5a26343e517eb7783313f654ae70652f7 (diff) | |
download | vyatta-conntrack-4daf13e96ef00fea7ad2655138c30c3f3c459cd7.tar.gz vyatta-conntrack-4daf13e96ef00fea7ad2655138c30c3f3c459cd7.zip |
T888: adjust the sysctl paths for the conntrack TCP loose option.
Diffstat (limited to 'templates-cfg/system/conntrack/tcp')
-rw-r--r-- | templates-cfg/system/conntrack/tcp/loose/node.def | 13 |
1 files changed, 3 insertions, 10 deletions
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 |