Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2849

System and Network configuration • Re: nftables script - configuration - errors

$
0
0
Hello,

Code:

#!/usr/sbin/nft -f[...]for f in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 1 > $f; done
The interpreter for this script is /usr/sbin/nft which cannot interpret shell commands.

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



Viewing all articles
Browse latest Browse all 2849

Trending Articles