Score:0

Socks5 3 proxy problem

de flag

So I Have 2 servers that run Ubuntu 20.4

One of them I can easily make socks5 proxy without any problem.

The other one I can't, even if I allow ports in the firewall with ufw allow [port], I use 3proxy that works great on the other server.

I check proxies with Proxy checker (Proxifier) checker error:

[19:33] Starting: Test 1: Connection to the Proxy Server
[19:33] IP Address: my IP
[19:33] Connection established
[19:33] Test passed.
[19:33] Starting: Test 2: Connection through the Proxy Server
[19:57] Error : connection to the proxy server was closed unexpectedly.
Please make sure that the proxy server protocol and address are correct.
[19:57] Test failed.
[19:57] Testing Finished.

And here are my curl logs

curl -i --socks5 IP:1080 --proxy-user user:pass google.com --socks5-hostname localhost

HTTP/1.1 301 Moved Permanently
Location: http://www.google.com/
Content-Type: text/html; charset=UTF-8
Date: Fri, 13 Aug 2021 01:45:32 GMT
Expires: Sun, 12 Sep 2021 01:45:32 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 219
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN

<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>

curl -v -x --socks5 IP:1080 --proxy-user user:pass google.com --socks5-hostname localhost

*   Trying ::1:1080...
* TCP_NODELAY set
* connect to ::1 port 1080 failed: Connection refused
*   Trying 127.0.0.1:1080...
* TCP_NODELAY set
* SOCKS5 communication to IP:1080
* SOCKS5 connect to IP:1080 (remotely resolved)
* SOCKS5 request granted.
* Connected to localhost (127.0.0.1) port 1080 (#0)
> GET / HTTP/1.1
> Host: ip:1080
> User-Agent: curl/7.68.0
> Accept: */*
>
* Received HTTP/0.9 when not allowed

* Closing connection 0
curl: (1) Received HTTP/0.9 when not allowed

* Hostname localhost was found in DNS cache
*   Trying ::1:1080...
* TCP_NODELAY set
* connect to ::1 port 1080 failed: Connection refused
*   Trying 127.0.0.1:1080...
* TCP_NODELAY set
* SOCKS5 communication to google.com:80
* SOCKS5 connect to google.com:80 (remotely resolved)
* SOCKS5 request granted.
* Connected to localhost (127.0.0.1) port 1080 (#1)
> GET / HTTP/1.1
> Host: google.com
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< Location: http://www.google.com/
< Content-Type: text/html; charset=UTF-8
< Date: Fri, 13 Aug 2021 01:48:23 GMT
< Expires: Sun, 12 Sep 2021 01:48:23 GMT
< Cache-Control: public, max-age=2592000
< Server: gws
< Content-Length: 219
< X-XSS-Protection: 0
< X-Frame-Options: SAMEORIGIN
<
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
* Connection #1 to host localhost left intact

What's wrong?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.