Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Socksify like program for Fedora?

Socksify, tsocks, proxycommand in ssh, they're great softwares/solutions that can be used to "constrain" given apps to use a SOCKS5 proxy (what was created with an SSH TUNNEL). Even if the given apps doesn't support to use SOCKS5.

But: Are there any solutions to use an SSH Tunnel to "constrain" all the traffic on a PC to it? So it would be like some "kind of a VPN solution". So all the traffic from the PC would go through only in the SSH Tunnel.

Are there any solutions for this? It would be a very-very-very good feature.

p.s.: because installing OpenVPN vs. Installing SSHD+restrict a ssh user to only have "ssh tunneling" permissions is much simpler...

Thank you.

share|improve this question
add comment

2 Answers

up vote 8 down vote accepted

Just found a new solution for this recently that is REALLY neat. Take a look at sshuttle.

https://github.com/apenwarr/sshuttle/

share|improve this answer
    
Thanks for mentioning sshuttle, +1 –  Mike Pennington Jun 3 '11 at 1:42
    
OMG, THIS IS GREAT!! thanks for sharing –  LanceBaynes Jun 3 '11 at 6:35
    
I wonder that are there any ports to win7? :D (Linux user:P) –  LanceBaynes Jun 3 '11 at 6:46
add comment

You can build VPN-like tunnels with SSH. The concept is essentially, connect your external network interface via ssh to some target machine. Create an internal only network interface. Change routing so that all traffic goes over the internal interface and hence out via the external tunnel.

Here's one tutorial,

http://bodhizazen.net/Tutorials/VPN-Over-SSH

and a more complex one,

http://www.debian-administration.org/articles/539

and another,

http://www.eth0.it/2008/06/09/ssh-vpn/

share|improve this answer
    
thank you, but I think you're solution is TCP over TCP. sshuttle isn't tcp over tcp afaik. –  LanceBaynes Jun 18 '11 at 8:18
add comment

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.