rofl0r / proxychains-ng

proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.
http://sourceforge.net/projects/proxychains-ng/files
GNU General Public License v2.0
9.82k stars 1.08k forks source link

Can't use proxies in the terminal by proxychains in Kali OS #551

Closed munmigenui closed 9 months ago

munmigenui commented 9 months ago

My OS is Kali 2023.4. I have a proxy web client V2RayA, its default Socks5 and HTTP ports are 20170 and 20171. I added the configuration in the etc/proxychains.conf file:

socks5 127.0.0.1 20170
http 127.0.0.1 20171

When I type in the terminal proxychains4 curl google.com to know if the terminal can use the proxy, the result of the terminal is:

[proxychains] config file found: /etc/proxychains4.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.16
[proxychains] Strict chain  ...  127.0.0.1:20170  ...  127.0.0.1:20171  ...  google.com:80 <--socket error or timeout!
curl: (7) Failed to connect to google.com port 80 after 0 ms: Couldn't connect to server

I can't use the proxy in terminal. I also filled in the same IP address and port as above in the network configuration of Firefox browser, and the proxy can be used successfully. Is there something wrong with my configuration?

rofl0r commented 9 months ago

Is there something wrong with my configuration?

yes. you're chaining two proxies on localhost. use only one.

munmigenui commented 9 months ago

Is there something wrong with my configuration?

yes. you're chaining two proxies on localhost. use only one.

ok,thanks you