To enable IP packet forwarding please edit /etc/sysctl.conf with your editor of choice – vim/gedit

# vim /etc/sysctl.conf

# Controls IP packet forwarding
net.ipv4.ip_forward = 1

Save and exit the file and you can then verify your settings with:

# /sbin/sysctl -p

Related Articles: