-
Notifications
You must be signed in to change notification settings - Fork 614
How to use ssl over socks5 via tun2socks #87
Comments
can't stunnel without modifying help you with that? |
I would indeed recommend an external approach like stunnel. Though it would be possible to add support for SSL based on the NSS library (not OpenSSL), since there is already NSS integration code present (https://github.com/ambrop72/badvpn/blob/master/nspr_support/BSSLConnection.h which is a layer that you insert on top of |
I try to use openssl + bio to implement ssl over socks5,but I fail. |
@ambrop72 |
Can you share us your implementation? |
@578141611 Please? |
@xDragonZ |
There is new requirement to use ssl wrapping socks5 data.I already read the source code of tun2socks,but I find it is hard to implement this reqirement by modifying code.I want to use the BSSLConntion.c ,but I can not insert the code in here:
// init SOCKS if (!BSocksClient_Init(&client->socks_client, socks_server_addr, socks_auth_info, socks_num_auth_info, addr, (BSocksClient_handler)client_socks_handler, client, &ss)) { BLog(BLOG_ERROR, "listener accept: BSocksClient_Init failed"); goto fail1; }
The text was updated successfully, but these errors were encountered: