Hello Ahmet,
Per this document, “You can only set the canIpForward field at instance creation time. After an instance is created, the field becomes read-only.” Hence, it is not possible to change it by editing the VM instance.
However, one workaround is by re-creating the instance from the existing VM instance’s boot disk, and the easiest way to do so is by:
(Note: recommended to take a snapshot of the boot disk before implementing this workaround)
Edit the existing VM instance and uncheck “Delete boot disk when instance is deleted”
Delete the current VM instance.
Create a new instance with the same specs,same zone, with IP forwarding enabled, and selecting the old VM’s boot disk ( which should not be deleted per step 1) as a boot disk for the new one.
Alternatively, you may keep the existing instance, and create a new one with the same specs from a snapshot by following this document.
For further help, please post your question at serverfault.com where you have access to a large community of enthusiasts and experts to share ideas with, and get support from. I also found this similar answered question at this link that may help, and that you may comment at.