What's new

HOW TO GET REDSOCKS SRC

ah nou nhy mou

Moderator
Staff member
Moderator
Established
Awards
2
  • SikatPInoy Staff
  • medal 1
Getting Redsocks source code

yum update

cd /opt/

yum install git

git clone https://github.com/darkk/redsocks

cd redsocks/


Step 2 — Compiling Redsocks

yum group install "Development Tools"

yum install libevent libevent-devel

After installation try to compile Redsocksagain using the make command. If compilation succeed you should see the compiled binary file in the current directory.

1 2

[[email protected] redsocks]# ls -l redsocks -rwxr-xr-x 1 root root 415968 Jul 7 08:49 redsocks

Now you can copy the binary file to any folder defined in the $PATH variable, to be able to execute it without specifying a full path to Redsocks.

Step 3 — Setting Iptables Rules

# Create new chain

iptables -t nat -N REDSOCKS

iptables -t nat -A REDSOCKS -p tcp -j REDIRECT --to-ports 12345
 
Top