I've a remote server which is not connected to the internet, but I can connect from via SSH to it through a VPN tunnel. On this client I got internet. Is it possible 'get internet' from the client through the VPN conection? The server is a Debian 7 machine.
f your server is running a recent sshd version ( >= 4.3 ) you should be able to use the ssh IP tunneling option "-w" and set up a point-to-point connection. After that it is just a matter of routing.
An alternative is to use a proxy for port forwarding
This will open an local SOCKS proxy :
This open a shell on the remote host and a tunnel to your proxy (unfortunately the -D cannot be set remotly)
That will works with firefox and gnome; if your application is not socks aware wrap it with tsocks
You could install a http proxy (like squid) on the client that is accessing this server, and then tunnel traffic back through the ssh connection to the client and then through the proxy.
Something like this
Sshing to the server would go something like this
Then on the server, you would setup apt to use a proxy with the address and port of
Adding the following line into
You could install squid on your machine and then:
And once inside:
It should work.
Maybe you can install a proxy on the server to access internet and modify apt to connect using http proxy, adding entries in
I'm telling this because is the way I am getting all the updates in my company. Here we have configured squid as http proxy.
Best of luck!