# Enable IP forwarding sudo sysctl -w net.ipv4.ip_forward=1 # IPv4 sudo sysctl -w net.ipv6.conf.all.forwarding=1 # IPv6 # Check status sudo sysctl net.ipv4.ip_forward # IPv4 sudo sysctl net.ipv6.conf.all.forwarding=1 # IPv6