my question is similar to this:
How to use Internet connection of a remote server in the local machine?
However I found no useful answer. I have access to a remote server via a VPN connection. In the server I can access to internet. The server is Ubuntu 16 and I am in sudoers and can install required tools. I want to have access to internet via this server. One benefit is that the server is inside my country and the data transfer between them is cheaper...
Anyway, if it's possible, please guide me what should I do in my local machine and remote server
This is what I tried:
sudo sshpass -p xxxx ssh -N -f -L localhost:8001:localhost:80 [email protected]
It runs with no error, but when I browse localhost:8001, it gives connection error Unable to connect
...