I was needing to install a socks proxy server on a Linux system so after a short research on Google, I found ss5 and proceed to install it.
Because I’m using Ubuntu on my server, I had to build the software manually.
After I downloaded the .tar.gz archive, I unpacked it by using
tar xzf ss5-3.7.9-1.tar.gz
And then by using
./configure
in the ss5-3.7.9 directory, I have configured the install scripts.
The only error that I received from configure was
checking for security/pam_misc.h… no
configure: error: *** Some of the headers weren’t found ***
And I fixed it by installing the development libraries of PAM
# apt-get install libpam0g-dev libpam-devperm
Shortly after that I found that I need libssl-dev package and I have installed it. But after that, make crashed with an error message that sounds like
relocation R_X86_64_32 against `a local symbol’ can not be used
when making a shared object; recompile with -fPIC .libs/assert.o: could not
read symbols: Bad value
I had to google because I never saw this error message and I found this page. That error comes from broken compiler and I had to force compiler to use -fPIC CFLAG by using
CFLAGS=-fPIC ./configure
Finally, it worked and I got my software compilled. After the successful build I installed ss5 by using
make install
You may erase all the config file and keep
auth YOUR_IP/32 – -
permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - -
And now, run ss5 and have fun using your socks5 proxy!