![]() |
Re: SOCKS5 Proxy and N800
Quote:
|
Re: SOCKS5 Proxy and N800
Thats what i was thinking and i had redownload it like 3 times. But this time i downloaded it to my linux fileserver then to my handheld and it worked . Thanks so much !!
Computerfreek |
Re: SOCKS5 Proxy and N800
Here's what I've got in my own personal webpage (not visible to the public at the moment). I'm not familiar with this site's associated Wiki, so I'm putting it here.
Caveats: This glosses over some stuff and is for OS2008. I'm also not sure if it's the best way to force tsocks for everything. What follows amounts basically to notes for myself with enough information to have some public use. ------ The built in browser doesn't have support for using a socks proxy, but you can change that through the use of tsocks. For a build of tsocks for the armel, see this post: http://www.internettablettalk.com/fo...31&postcount=8 http://packages.debian.org/lenny/tsocks (direct link) Just wget and "dpkg -i" it. ------ My tsocks configuration file is as follows: Quote:
Until I determine a better solution (e.g., a daemon that reacts to dbus connection messages, I think), my SSH client is started manually using the command line. In ~/bin/startSOCKS I have this script: Quote:
To start SSH I just do: Quote:
It is strongly recommended that you don't use password authentication and use public/private keys instead. ------ To test, from the command line try: * Start SSH tunnel. * Close all browser windows. * Type "tsocks browser" * Go to http://www.whatismyip.com/ to verify IP addresss is that of proxy server. * Kill SSH tunnel. * Try going to another website. It shouldn't load. * Restart SSH tunnel. * Try going to another website it should load now. * Rinse, repeat, until satisfied. From the command line, this is easily done with the links textmode browser: $ links http://whatismyip.com -dump | grep 'Your IP' 15:13:17 libtsocks(1416): Error 111 attempting to connect to SOCKS server (Connection refused) 15:13:17 libtsocks(1416): Error 111 attempting to connect to SOCKS server (Connection refused) 15:13:17 libtsocks(1416): Error 111 attempting to connect to SOCKS server (Connection refused) Socket exception $ ~/bin/startSOCKS $ links http://whatismyip.com -dump | grep 'Your IP' Your IP Address Is 10.23.118.37 $ killall ssh $ links http://whatismyip.com -dump | grep 'Your IP' 15:13:29 libtsocks(1428): Error 111 attempting to connect to SOCKS server (Connection refused) 15:13:29 libtsocks(1428): Error 111 attempting to connect to SOCKS server (Connection refused) 15:13:29 libtsocks(1428): Error 111 attempting to connect to SOCKS server (Connection refused) Socket exception $ ------ To force tsocks use for (almost all) outgoing network traffic, we need to define the LD_PRELOAD to force the tsocks library to load. Keep in mind this will NOT work for setuid programs when the setuid bit is actually used (ie, if you're not the program's owner). This is a security feature that can't be worked around. The file to edit is /etc/osso-af-init/af-defines.sh The comments make it sound like this gets called for pretty much everything that's started. I've already tested it on the browser and the telepathy (IM) stuff. This will quite possibly cause issues with the VOIP software like gizmo and skype. I haven't tried either yet. Add to the end this line: export LD_PRELOAD=/usr/lib/libtsocks.so.1.8 Restart. (Is there a way around restarting?) Test as above, but without calling "tsocks" explicitly. It is also possible, apparently, to put it in the /etc/ld.so.preload file, but this has the potential of killing your system if you get it wrong. I'd prefer to not break things by changing that, as I'm not quite sure how to recover without just flashing from scratch. ------ The other option, to just force for the browser, is to move /usr/bin/browser to /usr/bin/browserexec and then make a shell script at /usr/bin/browser with two lines: Quote:
|
Re: SOCKS5 Proxy and N800
ydant, excellent post.
I did need to get the armel package from sid instead of lenny: http://packages.debian.org/sid/tsocks Also, the lenny link in your post has an infinity symbol on the end of it. I was able to get it working with the browser on my N800 with OS2008. I'm still going to use my password login even if it does end up hanging the kerez session I launch the ssh command from. Pidgin doesn't seem to use it when launching as "tsocks /bin/pidgin" if memory serves. |
Re: SOCKS5 Proxy and N800
|
Re: SOCKS5 Proxy and N800
Thanks, InfinityDevil. I've noticed two problems with the constant tsocks method -
1) Gizmo doesn't work. You can override this by running it "LD_PRELOAD= gizmo". I tried setting the networks it uses as "local" in the tsocks configuration, to no avail. 2) Logging in to a hotspot like t-mobile's won't work with this method due to not being able to establish the tunnel until you've authenticated on their website. One workaround to this might be (I haven't tried this) to open a ssh connection back onto the tablet (ssh -D9999 root@0). I honestly don't know if the openssh server will be tsocked... Worth trying. :) I'm still looking for the best solution.... |
Re: SOCKS5 Proxy and N800
Quote:
|
Re: SOCKS5 Proxy and N800
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.
|
Re: SOCKS5 Proxy and N800
Quote:
The other thing to note is that Skype really doesn't need to be socksified, since it is end-to-end encrypted. |
Re: SOCKS5 Proxy and N800
Is anyone continuing to use this method? It seems useful...I really would like to get it working, but I'm having trouble. ydant's instructions were great, and I didn't have any problem with the install or configuration (that i can figure out) but it just doesn't work. No matter what i do, launching a browser (or any other app) doesn't end up working through the proxy.
If anyone is still doing this, I could use some advice. |
All times are GMT. The time now is 21:16. |
vBulletin® Version 3.8.8