That's a very funny problem.
I think you've not enabled network forwarding.
Open /etc/sysctl.conf and find for net.ipv4.ip_forward
If it exists then the line should look like the one given below-
If it doesn't exist, then add the line.
Code:
net.ipv4.ip_forward = 1
On the terminal type (as root)-