I have two VMs both running Ubuntu 14.04, one is connected to the internet and accessible publicly but the second one is not. Now whenever I want to install something or run apt-get update, it does not work on the second one (obviously no internet connection). I want to setup something like a proxy which tells the second VM to send all its internet traffic through the first VM which has internet access. Is it possible? I tried doing ssh tunneling but I did not understand one bit of it to make it work.