Hello,
Note that the parameters you want to set are normally set via the /etc/sysctl.conf file. I personally use the custom file /etc/sysctl.d/98-networking.conf. These files do not accept shell commands though.
See
The interpreter for this script is /usr/sbin/nft which cannot interpret shell commands.Code:
#!/usr/sbin/nft -f[...]for f in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 1 > $f; done
Note that the parameters you want to set are normally set via the /etc/sysctl.conf file. I personally use the custom file /etc/sysctl.d/98-networking.conf. These files do not accept shell commands though.
See
man 5 sysctl.conf
Statistics: Posted by fabien — 2024-04-24 11:50