Why you might want to use tsocks is described on the pages
How to proceed:
Install tsocks. E.g., under Debian Sarge the command
apt-get install tsocks
does the trick.
Edit the file /etc/tsocks.conf. For me the following configuration works:
# No socksing for private networks, Chello and ACOnet ## Private networks: RFC1918, RFC2563, ... local = 192.168.0.0/255.255.0.0 local = 10.0.0.0/255.0.0.0 local = 172.16.0.0/255.224.0.0 local = 127.0.0.0/255.0.0.0 local = 169.254.0.0/255.255.0.0 ## Chello local = 195.34.133.0/255.255.255.0 local = 213.46.0.0/255.254.0.0 ## ACOnet ### TU Wien local = 128.130.0.0/255.255.0.0 local = 192.35.240.0/255.255.252.0 local = 192.35.244.0/255.255.255.0 ### Uni Wien local = 131.130.0.0/255.255.0.0 ### Med Uni Wien local = 149.148.0.0/255.255.0.0 ### BOKU Wien local = 141.144.0.0/255.255.0.0 ### OeFAI local = 193.171.142.128/255.255.255.128 ### Mag Wien local = 141.203.0.0/255.255.0.0 ### bm:bwk local = 144.65.0.0/255.255.0.0 ### Add further ACOnet IP ranges here, see www.aconet.at/tn.html # # Use socks.tuwien.ac.at for all other destinations server = 192.35.241.134 server_type = 5 server_port = 1080
You can download the file here.
The man pages of tsocks describe how to use it. E.g., for updating your Debian distribution via the SOCKS server, use the command
tsocks dselect