سلام من دوتا سرور مجازی دارم که روشون ubuntu 20.4 نصبه و اولی ایران هستش دومی هلند
با برنامه 3proxy سعی کردم ساکس5 بسازم که توی سرور ایران بدون هیچ مشکلی کار میکرد
همین کارها هم کردم روی سرور هلند اما موفق نشدم به سرور کانکت میشه اما به گوگل مثلا برای پینگ گرفتن کانکت نمیشه
با برنامه Proxifier تست ساکس5 گرفتم ارور این میداد:
[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.
با curl هم تست گرفتم اینم log هاش
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
اینم netstat -tupln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN 662/3proxy
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 683/sshd: /usr/sbin
tcp 0 0 0.0.0.0:1080 0.0.0.0:* LISTEN 662/3proxy
tcp 0 0 0.0.0.0:2525 0.0.0.0:* LISTEN 662/3proxy
tcp6 0 0 :::22 :::* LISTEN 683/sshd: /usr/sbin
udp 0 0 0.0.0.0:1194 0.0.0.0:* 654/openvpn
و
telnet 127.0.0.1 1080
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
[Connection closed by foreign host.
دوستان مشکل از کجاست و اینم بگم openvpn بدون هیچ مشکلی کار میکنه ولی 3proxy نه فقط هم برای سرور هلند اینجوره