Editing the sysctl.conf file should give you the following screen:

As you can see, I have edited the file with the IP forwarding; and after I've removed the # I have pressed Ctrl+O to save the file.
Next you want to restart the interface with the sysctl -p command:

You now have IP forwarding enabled.