skip to content
Alvin Lucillo

Enable inter-pod comms in Linux

/ 1 min read

To enable packet forwarding so pods from different nodes can communicate via their node’s network interface, enable the setting:

sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1

Verify that it’s set

sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

You can see all other settings here

cat /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-iptables  = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.ipv4.ip_forward                 = 1
net.ipv4.conf.all.forwarding        = 1