apt-get install tsocks Edit the file: “/etc/tsocks.conf” server = 127.0.0.1 server_port = 1080