redsocks
redsocks copied to clipboard
Strange behaviour with compiled version! 🤔🤔🤔
Hi all. I have a strange issue with the compiled version of redsocks, both inside ad AlmaLinux and Ubuntu.
PRETTY_NAME="Ubuntu 24.04.1 LTS"
- same redsocks.conf
- same iptable nat table
APT STANDARD PACKAGE [/usr/sbin/redsocks -c /etc/redsocks.conf] [OK] /usr/sbin/redsocks -v redsocks/0.5 Built with libevent-2.1.12-stable Runs with libevent-2.1.12-stable
curl -IkL https://api.myip.com --connect-timeout 10
HTTP/2 200
date: Wed, 22 Jan 2025 11:49:30 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=n5hIViWkVW44o0T04yZBcqn4%2BknShz63unndFAJLtWWxvRJs6RWiK%2Fdk5eMwuTpIfLtCT6dTYiOWUgC0CYM47Cah1t%2BUWJKGDhngs3RT6msC%2F46vvkJ%2FHVt4vDP3iQ%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 905f523268b7ed90-MXP
server-timing: cfL4;desc="?proto=TCP&rtt=16344&min_rtt=15106&rtt_var=5052&sent=5&recv=6&lost=0&retrans=0&sent_bytes=3381&recv_bytes=779&delivery_rate=190652&cwnd=251&unsent_bytes=0&cid=0ca40867843081b0&ts=153&x=0"
LOG
1737613344.084822 notice main.c:165 main(...) redsocks started, conn_max=128
1737613371.503775 info redsocks.c:1243 redsocks_accept_client(...) [192.168.178.28:34448->172.67.75.163:443]: accepted
1737613371.688322 info redsocks.c:671 redsocks_drop_client(...) [192.168.178.28:34448->172.67.75.163:443]: connection closed
COMPILED PACKAGE [./redsocks/redsocks -c /etc/redsocks.conf] [HANGS 🥲🥲🥲] ./redsocks/redsocks -v redsocks.git/release-0.5-11-g19b822e Built with libevent-2.1.12-stable Runs with libevent-2.1.12-stable
curl -IkL https://api.myip.com --connect-timeout 10
curl: (28) SSL connection timeout
+++
curl -vIkL https://api.myip.com --connect-timeout 10
* Host api.myip.com:443 was resolved.
* IPv6: 2606:4700:20::ac43:4ba3, 2606:4700:20::681a:93b, 2606:4700:20::681a:83b
* IPv4: 172.67.75.163, 104.26.8.59, 104.26.9.59
* Trying 172.67.75.163:443...
* Connected to api.myip.com (172.67.75.163) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* SSL connection timeout
* Closing connection
curl: (28) SSL connection timeout
LOG
1737613427.949339 notice main.c:167 main(...) redsocks started, conn_max=128
1737613435.572957 info redsocks.c:1243 redsocks_accept_client(...) [192.168.178.28:43918->172.67.75.163:443]: accepted
What's wrong??? 🤔🤔🤔🤔🤔