chebel / jellytime

Automatically exported from code.google.com/p/jellytime
0 stars 0 forks source link

VPN Client does not work #127

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create VPN Connection PPTP or L2TP IPSEC PSK
2. unable to connect
3.

What is the expected output? What do you see instead?
Connectin established / Timeout or unable to connect.

What version of the product are you using? On what operating system?
JellyTime 10.1 HTC DHD

Please provide any additional information below.

I've attached a logfile. Used Clockwork ROM Manager to correct permissions,
does not work.

Hope this helps, thanks. XXXed out the IP's

Original issue reported on code.google.com by hellwe...@gmail.com on 25 Sep 2012 at 5:58

Attachments:

GoogleCodeExporter commented 8 years ago
is this still an issue in R11?

Original comment by MonsterBandit04 on 26 Sep 2012 at 12:28

GoogleCodeExporter commented 8 years ago
Yes, same error in R11, permission denied.

Original comment by hellwe...@gmail.com on 26 Sep 2012 at 3:28

GoogleCodeExporter commented 8 years ago
Ok, same with R12, but if i change the permissions of the
folder /data/misc/vpn to system.vpn (was system.system)
I read this elsewhere.
I am able to connect with pptp and l2tp psk. Permissions are
reset to system.system after a reboot.
Connection works. Haven't done any more checks until now, will do soon.

Original comment by hellwe...@gmail.com on 28 Sep 2012 at 2:39

GoogleCodeExporter commented 8 years ago
Did some more testing. VPN client works. It's a permission Problem.
In /init.rc File there's a line: mkdir /data/misc/vpn 0770 system vpn
so it should be ok. looks, like the permissions set in init.rc somehow
get overwritten. 

Original comment by hellwe...@gmail.com on 30 Sep 2012 at 2:07

GoogleCodeExporter commented 8 years ago
I think I found it. Wrong permissions set in File: init.spade.rc

on post-fs-data
    # Prep for services
    chmod 0771 /data
    chown system system /data
    mkdir /data/radio 0770 radio radio
    mkdir /data/misc 1771 system misc
    mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
    mkdir /data/misc/keystore 0700 keystore keystore

---> HERE
    mkdir /data/misc/vpn 0770 system system
    mkdir /data/misc/vpn/profiles 0770 system system

    mkdir /data/misc/wifi 0770 wifi wifi
    mkdir /data/misc/wifi/sockets 0770 wifi wifi
    mkdir /data/misc/dhcp 0770 dhcp dhcp
    chown dhcp dhcp /data/misc/dhcp

Original comment by hellwe...@gmail.com on 30 Sep 2012 at 2:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
R15 still have this problem. I am not sure how to fix it.

Original comment by Chiyuan...@gmail.com on 9 Oct 2012 at 1:08

GoogleCodeExporter commented 8 years ago
R17 also has the problem. Open a terminal emulator, and enter the following:

su
cd /data/misc
chgrp vpn vpn
cd vpn
chgrp vpn *

You have to do this after every reboot, because the init.spade.rc file is in
the ramdisk and cannot be changed in an easy way.

This is what works for me.

Original comment by hellwe...@gmail.com on 9 Oct 2012 at 4:40

GoogleCodeExporter commented 8 years ago
If you have installed a Firewall App like DroidWall, you also have to disable
the Firewall before connecting the vpn.

Original comment by hellwe...@gmail.com on 9 Oct 2012 at 4:41

GoogleCodeExporter commented 8 years ago
Thank you.  Could it expected to be fix soon?

Original comment by Chiyuan...@gmail.com on 10 Oct 2012 at 4:20

GoogleCodeExporter commented 8 years ago
The fixing is Part of MonsterBandit04 or dumbandroid. We'll have to wait.

Original comment by hellwe...@gmail.com on 10 Oct 2012 at 5:02

GoogleCodeExporter commented 8 years ago
I'm on R22. Having same issue.
Tried workaround of comment 8 and this works.

Rebooted and got the same issue again: Time out when connecting.
Re-entered the workaround: works again.

Please fix thisn :-)

Original comment by joan...@gmail.com on 22 Oct 2012 at 3:31

GoogleCodeExporter commented 8 years ago
Same for me too, please could this be fixed.

Original comment by martin.c...@gmail.com on 23 Oct 2012 at 10:45

GoogleCodeExporter commented 8 years ago
Can confirm issue still exists in r27.

The workaround mentioned in comment #8 continues to be a temporary solution,

Original comment by steine...@gmail.com on 10 Nov 2012 at 10:37

GoogleCodeExporter commented 8 years ago
Also still exists in r28 too

Original comment by steine...@gmail.com on 17 Nov 2012 at 3:54

GoogleCodeExporter commented 8 years ago
Comment #8 can be reduced to 2 lines 

su
chgrp -R vpn /data/misc/vpn

It's also possible you might be able to create an init script to automate this. 
 I am running R28 on I4G and was able to make the init script work 
successfully.  Instructions are as follows:

1. connect and login as root (I use Dropbear SSH Server app to SSH from my 
laptop, but you can also do this through terminal)
2. remount /system as read-write: mount -o remount,rw /system
3. cd /system/etc/init.d
4. create a file called 99vpnfix with the following:

#!/system/bin/sh
chgrp -R vpn /data/misc/vpn

5. save it
6. change permissions on 99vpnfix as follows: chmod 755 99vpnfix
7. exit and reboot

Original comment by scott.ge...@gmail.com on 18 Nov 2012 at 7:02

GoogleCodeExporter commented 8 years ago
VPN Client works with DroidWall if one allows (Kernel) Linux Kernel and VPN 
Networking.
Workaround 8 or 16 is still needed.

Original comment by hellwe...@gmail.com on 19 Nov 2012 at 2:54

GoogleCodeExporter commented 8 years ago
Flashable ZIP availabble at 
http://forum.xda-developers.com/showpost.php?p=34493725&postcount=14080

This installs a script into /data/local/userinit.d which will set the correct 
permissions on boot.

Original comment by steine...@gmail.com on 22 Nov 2012 at 3:28

GoogleCodeExporter commented 8 years ago
with this fix vpn immediately connects - still I cannot get traffic over it. to 
compare .. vpncilla connects and I get traffic over it (so the vpnserver is ok).

Original comment by daniel.l...@gmail.com on 24 Nov 2012 at 4:46

GoogleCodeExporter commented 8 years ago
Thanks steine...@gmail.com,

Original comment by martin.c...@gmail.com on 25 Nov 2012 at 3:07

GoogleCodeExporter commented 8 years ago
I full wiped, installed r29 and gapps, flashed the zip of post 18. I can 
connect to the vpn server, but just like post 19, I can't send data tru the 
tunnel.
With the fix of post 8 of 16 I can connect to local addresses with VPN.

Steine can you fix this?

Original comment by joan...@gmail.com on 25 Nov 2012 at 6:41

GoogleCodeExporter commented 8 years ago
I install #18 using the recovery : it works perfectly now.

Original comment by guillaum...@gmail.com on 23 Apr 2013 at 10:56