Android SoftEther - getsid() workaround

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
sky59
Posts: 124
Joined: Tue Sep 11, 2018 5:58 pm

Android SoftEther - getsid() workaround

Post by sky59 » Mon May 06, 2019 2:00 pm

After installing SE on A5V11 router, OrangePiZero and Ubuntu I decided to install it also on Android.

As I have very old rooted tablet (3 pieces) I decided to go on for API-14 level , JellyBean 4.1 android

After three days preparing cross compile environment installing OpenSSl, iconv, zlib, readline, ncurses, ifaddrs I finally have working
environment (at least seems to be)

Also differences between Android kernel and standard kernel needed some minor changes - if they work I will see

BUT:

there still remain one problem - there is no support for syscall getsid() in old APIs, I think they support from API-21 or -24

I also read somewere "remedy" just to return from function -1 , with this change I also compiled vpnserver, vpnbridge, vpncmd files, not tested them yet

No idea, what exactly, which process needs to be killed created by SoftEther?

My question is , probably on SE developers, how they would recommend any work around for this missing syscall in Android kernel?

I do not want to start now to generate new bionic library from source files implementing syscall getsid(), I have found it is a few instructions
in assembler

sky59
Posts: 124
Joined: Tue Sep 11, 2018 5:58 pm

Re: Android SoftEther - getsid() workaround

Post by sky59 » Wed May 08, 2019 8:36 am

good news is that it really works with abovementioned workaround for getsid()

STILL QUESTION: what can this workaround affect? what SE funcionality?

I attach some pictures, tested both BRGIDGE and CLIENT

Unfortunately package readline tar.gz (newest) has still got some bug, CRLF and BACKSPACE is not working correctly
DSCN2421.JPG
DSCN2420.JPG
DSCN2419.JPG
You do not have the required permissions to view the files attached to this post.
Last edited by sky59 on Wed May 08, 2019 8:38 am, edited 1 time in total.

sky59
Posts: 124
Joined: Tue Sep 11, 2018 5:58 pm

Re: Android SoftEther - getsid() workaround

Post by sky59 » Wed May 08, 2019 8:37 am

DSCN2422.JPG


So, please, if anybody can explain about getsid() fucionality I would be very happy

thanx
You do not have the required permissions to view the files attached to this post.

sky59
Posts: 124
Joined: Tue Sep 11, 2018 5:58 pm

Re: Android SoftEther - getsid() workaround

Post by sky59 » Thu May 16, 2019 12:57 pm

finally, I made it work also in reality, not only connect to the server

so far I noticed, that when starting client (with modified getsid() ) sometimes creates more than two instances of process, then it does not work
so I kill all of then and start again.... until there are only two processes

Can this be a "drawback" from neglecting getsid() ???

on picture you can see IP address of WIFI and IP address reported also by whatismyip.com - vpn_banovce interface
DSCN2425.JPG
You do not have the required permissions to view the files attached to this post.

Post Reply