Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

How to use it? #28

Open
vladns opened this issue Jul 21, 2023 · 1 comment
Open

How to use it? #28

vladns opened this issue Jul 21, 2023 · 1 comment

Comments

@vladns
Copy link

vladns commented Jul 21, 2023

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
Copy link
Owner

comp500 commented Aug 2, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants