Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to create a VPN tunnel from a client computer if the only thing you have is the possibility to initiate a SSH connection to a machine that has access to the "intranet"?

I know how to do this for specific ports but I am looking for a solution that would work for all ports.

FYI, the server is running Debian and the client OS X 10.8

share|improve this question
1  
Who's security are you trying to bypass? –  John Gardeniers Aug 16 '12 at 9:35

1 Answer 1

SSH can have many ports forwarded, you aren't limited to one per session.

But if you really can't predict what ports you are going to want use. openvpn tunnelled through ssh.

http://www.niteoweb.com/blog/openvpn-over-ssh

share|improve this answer
1  
The openvpn solution pre-supposes that openvpn is available on the remote system or can be installed (in which case, why bother with the ssh layer?). If openvpn is not an option then check if ppd is available - see also tldp.org/HOWTO/ppp-ssh –  symcbean Aug 16 '12 at 10:56
    
He bothers with the ssh layer, because from his description of the problem it appears the only traffic he can route to the server is ssh. Debian includes openvpn 2.1.3-2+squeeze1 in the stable build. On Macos he can use one of the package managers to install openvpn or follow this even more step by step howto. blog.acmelab.org/2008/07/20/… –  Michael Henry Aug 16 '12 at 11:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.