redsocks icon indicating copy to clipboard operation
redsocks copied to clipboard

In HTTP CONNECT, use hostname parsed from TLS SNI or HTTP Host header

Open andronoob opened this issue 4 years ago • 7 comments

Ported https://github.com/darkk/redsocks/pull/162 (which renews https://github.com/darkk/redsocks/pull/71 originally authored by @aviramc)

andronoob avatar Apr 25 '21 14:04 andronoob

tl; dr: this is actually remote DNS in http-connect mode.

太长不看:这其实就是远程DNS,用在http-connect模式。

andronoob avatar Apr 25 '21 15:04 andronoob

Sorry for late response. I did not look into every line. Could you please let me know if you have do any tests? is it working without problems? Do you think it is ready?

semigodking avatar Mar 19 '22 11:03 semigodking

I haven't used this for quite some time. I don't remember any remaining problem last time I used it. However I cannot guarantee there's no problem either.

andronoob avatar Mar 21 '22 15:03 andronoob

Oh at least CI is failing:

Package libssl1.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl1.0-dev' has no installation candidate
Error: Process completed with exit code 100.

andronoob avatar Mar 21 '22 16:03 andronoob

Thank you for all you have done! As we could not confirm no obvious problem, I would like to defer merging of this PR. Will look into it and do some tests when I have time.

andronoob @.***> 于 2022年3月22日周二 00:14写道:

Oh at least CI is failing:

Package libssl1.0-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'libssl1.0-dev' has no installation candidate Error: Process completed with exit code 100.

— Reply to this email directly, view it on GitHub https://github.com/semigodking/redsocks/pull/163#issuecomment-1074100704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAP2XD6J6FORLVS7SPLQDJTVBCOADANCNFSM43RKQ6CQ . You are receiving this because your review was requested.Message ID: @.***>

semigodking avatar Mar 22 '22 12:03 semigodking

Any update ?

ocixe avatar Dec 26 '22 13:12 ocixe

Hi, im trying use thid pull

git clone https://github.com/semigodking/redsocks redsocks3
cd redsocks3
git pull origin pull/163/head

but stuck when typng make

[root@10-0-2-15 redsocks3]# make
Compile with OpenSSL by default. To compile with PolarSSL, run 'make USE_CRYPTO_POLARSSL=true' instead.
cc -MM -fPIC -O3 -I./http-parser -L./http-parser -D_BSD_SOURCE -D_DEFAULT_SOURCE -Wall -std=c99 -D_XOPEN_SOURCE=600 -DUSE_CRYPTO_OPENSSL parser.c main.c redsocks.c log.c direct.c ipcache.c autoproxy.c encrypt.c shadowsocks.c http-connect.c socks4.c socks5.c http-relay.c base.c base64.c md5.c http-auth.c utils.c redudp.c socks5-udp.c shadowsocks-udp.c tcpdns.c tls.c gen/version.c 2>/dev/null >.depend || \
( \
        for I in redsocks.h libc-compat.h list.h encrypt.h tcpdns.h tls.h md5.h socks5.h log.h base.h protocol.h config.h http-auth.h shadowsocks.h parser.h version.h main.h base64.h redudp.h ipcache.h utils.h; do \
                export ${I//[-.]/_}_DEPS="`sed '/^\#[ \t]*include \?"\(.*\)".*/!d;s//\1/' $I`"; \
        done; \
        echo -n >.depend; \
        for SRC in parser.c main.c redsocks.c log.c direct.c ipcache.c autoproxy.c encrypt.c shadowsocks.c http-connect.c socks4.c socks5.c http-relay.c base.c base64.c md5.c http-auth.c utils.c redudp.c socks5-udp.c shadowsocks-udp.c tcpdns.c tls.c gen/version.c; do \
                echo -n "${SRC%.c}.o: " >>.depend; \
                export SRC_DEPS="`sed '/\#[ \t]*include \?"\(.*\)".*/!d;s//\1/' $SRC | sort`"; \
                while true; do \
                        export SRC_DEPS_OLD="$SRC_DEPS"; \
                        export SRC_DEEP_DEPS=""; \
                        for HDR in $SRC_DEPS; do \
                                eval export SRC_DEEP_DEPS="\"$SRC_DEEP_DEPS \$${HDR//[-.]/_}_DEPS\""; \
                        done; \
                        export SRC_DEPS="`echo $SRC_DEPS $SRC_DEEP_DEPS | sed 's/  */\n/g' | sort -u`"; \
                        test "$SRC_DEPS" = "$SRC_DEPS_OLD" && break; \
                done; \
                echo $SRC $SRC_DEPS >>.depend; \
        done; \
)
[root@10-0-2-15 redsocks3]# uname -a
Linux 10-0-2-15.cprapid.com 3.10.0-1160.81.1.el7.x86_64 #1 SMP Fri Dec 16 17:29:43 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[root@10-0-2-15 redsocks3]# 

CenOS7 minimal downloaded today and install to VirtualBox

ocixe avatar Dec 26 '22 13:12 ocixe