It appears that running for example sysctl to apply nf_conntrack kernel parameter, may end with error:

"/proc/sys/net/netfilter/nf_conntrack_max: No such file or directory"

To avoid the error, it may work to run

sudo modprobe nf_conntrack

or

modprobe nf_conntrack

in order to enable that kernel module first