echo 1 > /proc/sys/net/ipv4/ip_forward

That is the rpoblem, you are messing with the configuration directly so the other tools don't work properly because they can't handle that config. Is like...