
Flash Advertise
| Get around that pesky firewall filtering with tsocks | ||
| 摘自: www.cmdln.org 被阅读次数: 162 | ||
由 yangyi 于 2008-04-16 19:14:30 提供 | ||
First things first, for this to work you need to have ssh access to a machine outside your network. I like to use an account in shanghi, but really if you just ssh back to your home machine that will most likely suffice. Ok now that you can ssh out you can use ssh dynamic port forwarding via SOCKS, but you need to install tsocks before that will be useful. For debian: aptitude install tsocks Now you need to edit your tsocks.conf to point it to localhost (since we are using ssh dynamic ports). Ensure the following lines in /etc/tsocks.conf server = 127.0.0.1 server_port = 1080 server_type = 5 So thats it! Easy eh? Now to surf or check email in privacy. ssh -D 1080 remotebox.domain.tld & tsocks firefox & tsocks thunderbird & *Note: Another great use for this is when you are on the road. Many hotels block outbound port 25, which causes you to not be able to send email with your prefered mail client unless you start doing ssh port forwarding or some other trickery. And its a pita to setup multiple outbound smtp connections that you have to switch to. Anyway hope you find this useful. Here is a video of the process for your viewing pleasure. Original link: http://www.cmdln.org/2008/02/12/... |