<div dir="ltr">Sorry guys, can i ask a stupid question? What reason to use stunnel on Android?</div><br><div class="gmail_quote"><div dir="ltr">ср, 9 дек. 2015 г. в 17:01, Research | FrenchFlorida <<a href="mailto:research@frenchflorida.com">research@frenchflorida.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the reply.<br>
I'm not sure what " statically linked ELF executable for Android/ARM" means yet, but I will look it up. ;)<br>
<br>
Since I sent the message I did a lot of digging that yielded me very little details. In fact I only came a cross a few mentions that stunnel could be used on android but no examples of how that was implemented. After a vague hint I managed to deduced how the file worked, but it took me a little more independent research to understand how to make it, at least execute. I'm not new to linux but am new to android so not as familiar to how the system works in general.<br>
<br>
I did see that an android app was on your todo list. In the meanwhile however, may I suggest a little howto for Android that could get a user started in using the app. Stunnel is an amazing application and since I was able to figure it out I made myself a guide on how to set it up (Minus actually creating the configuration) so that I can at least know how to execute stunnel.<br>
<br>
Since I already did the research I offer you my very unorganized primer on how to set it up below. Perhaps it would be useful for some to have a better version of this doc on the site, and if not, well at least a well determined person can find this topic in the mailing list, because there will be only one other topic with the word "Android" in the title so it can perhaps get a user out of jam more quickly without.<br>
<br>
Here is my guide:<br>
-----------------------------<br>
Chances are that "It is a statically linked ELF executable for Android/ARM." Means that within the stunnel-android.zip resides one file, and that file is the executable file for stunnel. It is in fact the defacto program that under linux you would see in /etc/local/bin/stunnel if that was where you installed it.<br>
<br>
This means that the requirements to use this file are as such:<br>
1. Your phone probably needs to be rooted<br>
2. You will need access to a terminal on your phone (Terminal Emulator)<br>
3. There is no "APP" to run stunnel it is a command line file<br>
<br>
There are probably two reasons you would want to use stunnel on your phone.<br>
1. You are an app developer that wants to use stunnel to connect one part of your app to something else, and therefore will incorporate this script within your app. I don't know how to make apps yet so that's probably as useful as I can make the description for you.<br>
2. You are a user that has already used stunnel on your machine and wants to use it on your phone too. [The rest of the guide assumes this is the case.]<br>
<br>
Assuming the latter, what do you need to do to get it running?<br>
1. Move the stunnel application to your phone.<br>
2. As you would do in linux open the terminal<br>
3. Run stunnel like a command<br>
<br>
If you get an error message saying it is not executable, or that permission is denied it is because of one of two things.<br>
Maybe you need to mark the file as executable<br>
Chmod +x ./stunnel<br>
Terminal Emulator's chmod does not understand "+x" so you will have to change the permission to<br>
Chmod 700 ./stunnel<br>
700 means Read-Write-Execute for the user. If it doesn't work try 770 and 777<br>
<br>
However you are likely to still receive that error on some phones. (I'm guessing, just because it happened to my phone I am not assuming it will happen to all phones.)<br>
<br>
Some phones forbid there to be an executable script within the /sdcard/ directory. Therefore you have to move it somewhere else.<br>
<br>
I don’t know where the proper place for such a file is, I moved mine to /system/bin/ therefore the script is callable by /system/bin/stunnel<br>
<br>
Another Caveat!! My phone's /system folder is not writable!! Therefore before you can even move the file you need to make the system folder writable:<br>
mount -o rw,remount /system<br>
Once moved needs to be made readonly again:<br>
mount -o ro,remount /system<br>
<br>
<br>
So In summary, here is a step-by-step of what might work in getting the script to an executable state on Android:<br>
1. Root phone<br>
2. install terminal emulator<br>
3. get stunnel script onto your phone somehow<br>
4. mount -o rw,remount /system<br>
5. cp /sdcard/Download/stunnel /system/bin/stunnel<br>
6. chown 700 /system/bin/stunnel<br>
7. mount -o ro,remount /system<br>
<br>
8. /system/bin/stunnel /path/to/conf/file*<br>
<br>
Now as if you are on linux you should probably** be able to run stunnel.<br>
<br>
*I haven't tested it out with conf files yet.<br>
** I'm able to run stunnel --version so stunnel in and of itself is "working"<br>
<br>
-----------------------------<br>
<br>
If this guide is any good to you guys, please feel free to use, I would love to contribute in some way. :)<br>
<br>
Thanks!<br>
<br>
-Cotex<br>
<br>
-----Original Message-----<br>
From: stunnel-users [mailto:<a href="mailto:stunnel-users-bounces@stunnel.org" target="_blank">stunnel-users-bounces@stunnel.org</a>] On Behalf Of <a href="mailto:stunnel-users-request@stunnel.org" target="_blank">stunnel-users-request@stunnel.org</a><br>
Sent: Tuesday, December 08, 2015 7:00 PM<br>
To: <a href="mailto:stunnel-users@stunnel.org" target="_blank">stunnel-users@stunnel.org</a><br>
Subject: stunnel-users Digest, Vol 137, Issue 10<br>
<br>
Send stunnel-users mailing list submissions to<br>
        <a href="mailto:stunnel-users@stunnel.org" target="_blank">stunnel-users@stunnel.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" rel="noreferrer" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:stunnel-users-request@stunnel.org" target="_blank">stunnel-users-request@stunnel.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:stunnel-users-owner@stunnel.org" target="_blank">stunnel-users-owner@stunnel.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific than "Re: Contents of stunnel-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: How do I use the Stunnel download on android?<br>
      (Michal Trojnara)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 7 Dec 2015 16:14:05 +0100<br>
From: Michal Trojnara <<a href="mailto:Michal.Trojnara@mirt.net" target="_blank">Michal.Trojnara@mirt.net</a>><br>
To: <a href="mailto:stunnel-users@stunnel.org" target="_blank">stunnel-users@stunnel.org</a><br>
Subject: Re: [stunnel-users] How do I use the Stunnel download on<br>
        android?<br>
Message-ID: <<a href="mailto:5665A23D.8050408@mirt.net" target="_blank">5665A23D.8050408@mirt.net</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
Hi cotex,<br>
<br>
It is a statically linked ELF executable for Android/ARM.<br>
It is only useful for people who customize their Android, and not for end-users.<br>
<br>
A proper Android GUI is on my TODO list:<br>
<a href="https://www.stunnel.org/sdf_todo.html" rel="noreferrer" target="_blank">https://www.stunnel.org/sdf_todo.html</a><br>
<br>
Best regards,<br>
        Mike<br>
<br>
On 04.12.2015 11:02, Research | FrenchFlorida wrote:<br>
> In the download section of the site, there is a zip for android.<br>
><br>
> Inside this file is a single file, without any extention.<br>
><br>
> How do I install this, I have found no documentation anywhere on the<br>
> web.<br>
><br>
><br>
><br>
> Can anybody guide me, or give me a hint. Is this something I do on the<br>
> phone, or that I do from the computer first?<br>
><br>
><br>
><br>
> -cotex<br>
><br>
><br>
><br>
> _______________________________________________ stunnel-users mailing<br>
> list <a href="mailto:stunnel-users@stunnel.org" target="_blank">stunnel-users@stunnel.org</a><br>
> <a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" rel="noreferrer" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br>
><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" rel="noreferrer" target="_blank">http://www.enigmail.net/</a><br>
<br>
iQIcBAEBCAAGBQJWZaI9AAoJEC78f/DUFuAUJiAQAKYo2XM39WbeebhZlYa4pER2<br>
hYfCkybWypYlOdiqRo5UGthG4SD/G74MXMJNR5ggKiApW6YBe4/Q983hKMWRSbp6<br>
X803HQPyN8BxwnkZM9tzAcCh57SQXH/Y+VjTD9necLK9bOMMZlZsWg5u3TSp9qP1<br>
jpV7+5NkMlID0KaKzpjaw+ruIY1zwmBUDrs0xT713TEZnVvaqhFDv2vYB8szG0p0<br>
fe5Ppm/ZU/7vWMbFO8eWsWj6TpeoVpq2EI/4iK7VbnCVnSEosJi/C4C5nZ3GrcTv<br>
xRk0xDK9I733FfBTmHU5Dkzx6fcDqFekWyea+qYT+JhOmtRqdnyrQM0OCRv3z/b/<br>
fOv36zkuru6DhoO1El2QwQOZlTqFnWYfgvfYDWI1zeIMCSz/qqpn5ojQXk7i87zH<br>
cMVG9whVZGWf0DXjwRo9/cHkmjdX46UA5FZwhxADY6Atu9OtdEabTcbNj6BPPh8Q<br>
xX7GNEgRFnbZsz50wqZbZJZfE4ticWFkLH37eT7z3WeEU8+HdFk1w24JNGFaZt3H<br>
GcJ6TN6/fMTkQP2ch0l0X2vXhWLkBh5puYOVBnsnKKUl8UUzeGa1T3OJAnKJF07Q<br>
0mtP6lyPtuEGy9vUiP+2h0yIICJD1IGhEdkEm3xWJcagp3XJ+0PFN5Mo2juDfg4S<br>
FHvDTHxF4/y4PQodabav<br>
=+omM<br>
-----END PGP SIGNATURE-----<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
stunnel-users mailing list<br>
<a href="mailto:stunnel-users@stunnel.org" target="_blank">stunnel-users@stunnel.org</a><br>
<a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" rel="noreferrer" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of stunnel-users Digest, Vol 137, Issue 10<br>
**********************************************<br>
<br>
_______________________________________________<br>
stunnel-users mailing list<br>
<a href="mailto:stunnel-users@stunnel.org" target="_blank">stunnel-users@stunnel.org</a><br>
<a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" rel="noreferrer" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br>
</blockquote></div>