---
name: "tsocks"
section: "1"
platform: "linux"
package: "tsocks"
version: "1.8beta5-10"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/tsocks"
---

# tsocks(1)

Shell wrapper to simplify the use of the tsocks(8) library to transparently allow an application to use a SOCKS proxy

## NAME

**tsocks** - Shell wrapper to simplify the use of the [tsocks(8)](/tsocks/8.md) library to  transparently allow an application to use a SOCKS proxy

## SYNOPSIS

**tsocks** \[application \[application's arguments\]\]\
 or **tsocks** \[on\|off\]\
 or **tsocks**

## DESCRIPTION

**tsocks** is a wrapper between the tsocks library and the application what you would like to run socksified.

## OPTIONS

- **\[application \[application's arguments\]\]**

  run the application as specified with the environment (LD\_PRELOAD) set such that [tsocks(8)](/tsocks/8.md) will transparently proxy SOCKS connections in  that program

- **\[on\|off\]**

  this option adds or removes [tsocks(8)](/tsocks/8.md) from the LD\_PRELOAD environment variable. When [tsocks(8)](/tsocks/8.md) is in this variable all executed applications are automatically socksified. If you want to use this function, you HAVE to source the shell script from yours, like this: "source /usr/bin/tsocks" or ". /usr/bin/tsocks"\
   Example:\
   ". tsocks on" -- add the tsocks lib to LD\_PRELOAD\
   ". tsocks off" -- remove the tsocks lib from LD\_PRELOAD

- **\[show\|sh\]**

  show the current value of the LD\_PRELOAD variable

- **\<without any argument\>**

  create a new shell with LD\_PRELOAD including [tsocks(8)](/tsocks/8.md).

## AUTHOR

This script was created by Tamas SZERB \<toma@rulez.org\> for the debian package of tsocks. It (along with this manual page) have since been  adapted into the main tsocks project and modified.
