Allow Shadowsocks (SOCKS5) and Privoxy (Http Proxy)

Post Reply
Gamecock
Junior Member
Posts: 1
Joined: 04 Feb 2022, 12:47

Allow Shadowsocks (SOCKS5) and Privoxy (Http Proxy)

Post by Gamecock »

I have installed Shadowsocks client (for SOCKS5 proxy) and Privoxy (for convert socks5 to http proxy) on Centos 7 (I use cPanel).

SOCKS5 is running on 127.0.0.1:1080
Privoxy is running on 127.0.0.1:8118

When the CSF is enable, the socks5 and http proxy don't work:

# curl --socks5 127.0.0.1:1080 https://httpbin.org/ip
curl: (35) Encountered end of file

But when I disable CSF (csf -x), It works:

# curl --socks5 127.0.0.1:1080 https://httpbin.org/ip
{
"origin": "194.71.130.160"
}

I added 1080 and 8118 ports in TCP_IN, UDP_IN, TCP_OUT, UDP_OUT but doesn't effected.

I also added the lines:

tcp/udp|in/out|s/d=1080|s/d=127.0.0.1
tcp/udp|in/out|s/d=8118|s/d=127.0.0.1

in /etc/csf/csf.allow and /etc/csf/csf.ignore files. But still the same problem.

How can I solve this?

Note: the socks5 client is running under user "nobody":

[root@server ~]$ ps -aux | grep shadowsocks
nobody 60901 0.0 0.0 32452 2068 ? Ss Feb04 0:01 /usr/bin/ss-local -c /etc/shadowsocks-libev/config.json -u
Post Reply