Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sending all traffic through ssh tunnel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jaskoola
n00b
n00b


Joined: 24 Jan 2006
Posts: 23

PostPosted: Wed Dec 27, 2006 9:06 pm    Post subject: sending all traffic through ssh tunnel Reply with quote

Hi,
I want to make may connection secure when I surf internet using hotspot. I have account on shell server. I connect to this server
Code:
ssh -D 8080 login@server

and after login I can configure browser (and other programs which can do that) to use Socks server on localhost:8080 and this traffic go through ssh tunnel to my server. But I want to know how I can use this tunnel global, to all programs in system without configuring them. Any ideas??
Back to top
View user's profile Send private message
Zepp
Veteran
Veteran


Joined: 15 Mar 2004
Posts: 1246
Location: Ontario, Canada

PostPosted: Wed Dec 27, 2006 9:12 pm    Post subject: Re: sending all traffic through ssh tunnel Reply with quote

jaskoola wrote:
Hi,
I want to make may connection secure when I surf internet using hotspot. I have account on shell server. I connect to this server
Code:
ssh -D 8080 login@server

and after login I can configure browser (and other programs which can do that) to use Socks server on localhost:8080 and this traffic go through ssh tunnel to my server. But I want to know how I can use this tunnel global, to all programs in system without configuring them. Any ideas??


Using a VPN setup of some sort? Maybe look into openvpn.
Back to top
View user's profile Send private message
jaskoola
n00b
n00b


Joined: 24 Jan 2006
Posts: 23

PostPosted: Wed Dec 27, 2006 9:27 pm    Post subject: Reply with quote

but I cant use openvpn or ipsec because this server its not mine and I don't have infulence on services it's provided. It's free shell account
Back to top
View user's profile Send private message
Zepp
Veteran
Veteran


Joined: 15 Mar 2004
Posts: 1246
Location: Ontario, Canada

PostPosted: Wed Dec 27, 2006 10:15 pm    Post subject: Reply with quote

So you just want to force all apps to use the proxy? Are these are windows machines your connecting from?
Back to top
View user's profile Send private message
jaskoola
n00b
n00b


Joined: 24 Jan 2006
Posts: 23

PostPosted: Wed Dec 27, 2006 10:19 pm    Post subject: Reply with quote

no, I use gentoo on my laptop and I want put all traffic to ssh tunnel
Back to top
View user's profile Send private message
jn73
n00b
n00b


Joined: 17 Jan 2005
Posts: 23
Location: Umeaa, Sweden

PostPosted: Fri Feb 02, 2007 3:54 pm    Post subject: Reply with quote

A little late.. but anyway..

Take a lock at tsocks (http://tsocks.sourceforge.net/). You can "socksify" any program by executing it through the tsocks wrapper. You configure tsocks to use a socks proxy (the SSH tunneled one in your case). After this you can start any program through the tsocks wrapper, for example:

"tsocks irssi"

DNS-leakage used to be a problem, but in the later (latest?) version you can configure these to be routed through the proxy aswell.

What it does is to add it's own version of the socket lib connect function. By setting the LD_PRELOAD variable to the tsock library, any program that is dynamicly linked to "connect" will use the tsock-version instead.

You can also configure specific address-ranges to be routed through different proxys, or connect directly etc.
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Wed Mar 28, 2007 7:41 am    Post subject: Reply with quote

dante provides similar functionality

usage:
http://www.plug.org/pipermail/plug/2005-December/018424.html

note:
I've never used this software, so no guarantees
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Sat May 19, 2007 10:26 am    Post subject: Reply with quote

What about simple PPP over SSH....there are howto's on that on google!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum