Skip to content

Instantly share code, notes, and snippets.

@gblok
Forked from TheBeachMaster/fix.sh
Last active March 9, 2019 13:10
Show Gist options
  • Save gblok/e374deaee8bec94251ce50c6b0f06820 to your computer and use it in GitHub Desktop.
Save gblok/e374deaee8bec94251ce50c6b0f06820 to your computer and use it in GitHub Desktop.
Fix Docker WARNING: bridge-nf-call-iptables is disabled on Centos
sudo sysctl net.ipv4.conf.all.forwarding=1
sudo sysctl net.bridge.bridge-nf-call-iptables=1
sudo sysctl net.bridge.bridge-nf-call-ip6tables=1
//or
/sbin/sysctl -w net.ipv4.conf.all.forwarding=1
/sbin/sysctl -w net.bridge.bridge-nf-call-ip6tables=1
/sbin/sysctl -w net.bridge.bridge-nf-call-iptables=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment