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.
Connect to the Internet on a VPN connected server without Internet
debian;apt;vpn
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.(As your server is only reachable through the network beware to not cut the link when setting the routes. For instance open a new ssh connection to your server from another server connected to the same lan. Local routes are unaffected so you will not risk to cut the connection even if you remove the default gateway.)see doccumentation here extract :     +---------------+            OpenSSH 4.3           +---------------+    |   Machine A   | tun0 -- Tunnel Interface -- tun0 |   Machine B   |    |  Has a tunnel | <------------------------------->|  Has a tunnel |      |  and ethernet | 10.0.0.100            10.0.0.200 |  and ethernet |    +-------+-------+     point to point connection    +-------+-------+       eth0 |                 creates a bridge                 | eth0   10.0.0.100 |               that plugs machine B               | 192.168.0.100   port 22  |                  into network A                  |            forwarded |                                                  |    here    |                                                  |    +-------+-------+          +-~-~-~-~-~-~-~-+       +-------+-------+     |   Network A   |          |               |       |   Network B   |    |  10.0.0.1/24  | 1.2.3.4  |  The Internet |       | 192.168.0.1/24|    |  Has internet |<-------->|               |<----->|  Has internet |    |  NAT gateway  | Routable |               |       |  NAT gateway  |    +---------------+ Address  +-~-~-~-~-~-~-~-+       +---------------+EDITAn alternative is to use a proxy for port forwardingThis will open an local SOCKS proxy :ssh -TND 127.0.0.1:1080  localuser@localhostThis open a shell on the remote host and a tunnel to your proxy (unfortunately the -D cannot be set remotly)ssh -R 127.0.0.1:1080:127.0.0.1:1080 remoteuser@remotehostThat will works with firefox and gnome; if your application is not socks aware wrap it with tsocks $ sudo -s # cat >/etc/tsocks.conf <<eofserver = 127.0.0.1server_type = 5server_port = 1080eof# tsocks apt-get update 