Skip to content

Instantly share code, notes, and snippets.

@samnzay
Forked from iamcryptoki/fix-sysctl.txt
Created June 6, 2023 08:47
Show Gist options
  • Save samnzay/4dc09a1ab29e20d03304ed9356ecc09f to your computer and use it in GitHub Desktop.
Save samnzay/4dc09a1ab29e20d03304ed9356ecc09f to your computer and use it in GitHub Desktop.
Fix sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables.
$ modprobe bridge
$ echo "net.bridge.bridge-nf-call-iptables = 1" >> /etc/sysctl.conf
$ sysctl -p /etc/sysctl.conf
sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-iptables: No such file or directory sysctl: cannot stat /proc/sys/net/bridge/bridge-nf-call-ip6tables: No such file or directory
# SOLUTION
$ modprobe br_netfilter
$ sysctl -p /etc/sysctl.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment