comp500 / SSLSocks

stunnel for Android GUI, allows tunneling over TLS
GNU General Public License v3.0
128 stars 54 forks source link

How to use it? #28

Open vladns opened 1 year ago

vladns commented 1 year ago

I read this manual (https://hamy.io/post/0011/how-to-run-stunnel-on-your-android-device/), added my certificate, added part of the config, pressed start, but nothing happens. I don't see anything in the logs on my stunnel server. I also have a stunnel-cli for android with the same config and certificate, which I run from the terminal, it works. Well, the most incomprehensible thing is how the browser on android should use this proxy? When I use stunnel-cli from the terminal, I create a new access point (APN) in the network settings (not wifi) and specify the proxy server 127.0.0.1:8443 there. My config (to be added to what is already suggested):

cert = /data/local/tmp/etc/stunnel/stunnel.pem
CAfile = /data/local/tmp/etc/stunnel/stunnel.pem
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

[server]
accept = 127.0.0.1:8443
connect = XX.XX.XX.XX:8443
verify = 2
comp500 commented 1 year ago

stunnel is intended for tunnelling a single TCP connection, not your whole internet connection - I don't think configuring your APN settings will work with it. Use a VPN, like WireGuard or shadowsocks.