diff options
-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 |