I want to achive the following.
What exactly do you want to achieve?
to enable forwarding in linux, you need to create the proper rules
in the FORWARD chain in iptables
. If you only want ping packets to be forwarded you need to add
-p icmp --icmp-type 0
to the forwarding rule. Note that icmp-type 0 is the echo-reply, icmp-type 8 is echo-request.