Persist bridge-nf-call-iptables on Reboot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Running `modprobe br_netfilter` does not persist. | |
echo 'br_netfilter' >> /etc/modules | |
# Running `sysctl net.bridge.bridge-nf-call-iptables=1` does not persist. | |
echo 'net.bridge.bridge-nf-call-iptables=1' >> /etc/sysctl.conf | |
echo 'net.bridge.bridge-nf-call-ip6tables=1' >> /etc/sysctl.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If this still doesn't work, try
sudo apt remove --purge ufw
, asufw
has rules that overridesysctl
.If that still doesn't work, try
sudo grep -rl net.bridge.bridge-nf-call-iptables /etc
to find any other files that could be overriding it.