![]() |
2008-01-10
, 16:44
|
|
Posts: 739 |
Thanked: 159 times |
Joined on Sep 2007
@ Germany - Munich
|
#51
|
![]() |
2008-01-10
, 18:19
|
Posts: 121 |
Thanked: 28 times |
Joined on Oct 2007
|
#52
|
![]() |
2008-01-13
, 20:30
|
|
Posts: 32 |
Thanked: 7 times |
Joined on Oct 2007
|
#53
|
Nokia-N810-50-2:/usr/bin# cat /etc/tsocks.conf
# ip addresses to consider as local (don't forward these)
local = 192.168.0.0/255.255.255.0
local = 10.0.0.0/255.0.0.0
# sample of a specific path to follow for certain routes - left so I don't
# forget it if I need to do this at a future date
# path {
# reaches = 150.0.0.0/255.255.0.0
# reaches = 150.1.0.0:80/255.255.0.0
# server = 10.1.7.25
# server_type = 5
# default_user = delius
# default_pass = hello
#}
# this is the place where my socks proxy is running
# I use openssh's client to provide "dynamic" port forwarding
# ssh -f -N -D9999 myuser@mysshserver
server = 127.0.0.1
server_type = 5 # socks 5
server_port = 9999
Nokia-N810-50-2:/usr/bin#
#!/bin/sh
# -f - Go into background (detach) once connection is established.
# - Implies -n (redirect input from /dev/null).
# -N - Do not execute a command. This is good for just forwarding
# - ports.
# -C - Compression. Might have negative impact all around and is
# - "guaranteed" to have negative impact on wifi. Perf benefit
# - over cell yet to be established.
# -D - Start "dynamic forwarding" - SOCKS proxy listening on port 9999
SSH_ARGS='-f -N -C -D9999'
# remove the preload of the tsocks library
LD_PRELOAD=
# try connecting to both servers - eliminate everything
# from the || to the end of the line if you only need one
ssh $SSH_ARGS username1@host1 || ssh $SSH_ARGS username2@host2
Nokia-N810-50-2:/usr/bin# ~/bin/startSOCKS
Nokia-N810-50-2:/usr/bin#
#!/bin/sh
tsocks /usr/bin/browser
The Following User Says Thank You to ydant For This Useful Post: | ||
![]() |
2008-01-15
, 14:34
|
Posts: 73 |
Thanked: 11 times |
Joined on Dec 2007
@ NJ, USA
|
#54
|
![]() |
2008-01-16
, 05:06
|
|
Posts: 32 |
Thanked: 7 times |
Joined on Oct 2007
|
#56
|
![]() |
2008-01-16
, 17:11
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#57
|
![]() |
2008-01-16
, 21:37
|
|
Posts: 32 |
Thanked: 7 times |
Joined on Oct 2007
|
#58
|
![]() |
2008-01-16
, 21:58
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#59
|
Right, I think I'll go that approach for now (actually, I'll likely just run from the command line for now). So that just leaves telepathy.
![]() |
2008-11-25
, 03:56
|
Posts: 15 |
Thanked: 0 times |
Joined on Oct 2007
@ Durham, NC
|
#60
|