redsocks command not found

In this troubleshooting guide we learn how to fix redsocks command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

redsocks: command not found

or when using sudo you get the following error message

sudo: redsocks: command not found

Solutions to redsocks: command not found

How To Fix redsocks: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu redsocks is provided by redsocks package.

redsocks is:

Redsocks is a daemon running on the local system, that will transparently tunnel any TCP connection via a remote SOCKS4, SOCKS5 or HTTP proxy server. It uses the system firewall’s redirection facility to intercept TCP connections, thus the redirection is system-wide, with fine-grained control, and does not depend on LD_PRELOAD libraries.

Redsocks supports tunneling TCP connections and UDP packets. It has authentication support for both, SOCKS and HTTP proxies.

Also included is a small DNS server returning answers with the “truncated” flag set for any UDP query, forcing the resolver to use TCP.

To fix this problem, we can install more using the command below.

sudo apt-get -y install redsocks

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install redsocks.

sudo apt -y install redsocks

Or if you have aptitude installed you can use the following command.

sudo aptitude install redsocks

Summary

In this tutorial we learn how to fix redsocks command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.