Hello dear android developers and followers,

I am a UNIX System Administrator for more than 10 years. 
I am contacting you because of my post at 
https://code.google.com/p/android/issues/detail?id=196939#c276 . 
L2TP/IPSEC works for me great run by Android GUI. However run from 
commandline it just doesn't work.

What I have tried ?

# racoon wlan0 192.168.0.1 udppsk "" "IPSECPRESHAREDGOESHERE" 1701 &
# mtpd wlan0 l2tp 192.168.0.1 1701 "" linkname vpn name MYUSERNAMEGOESHERE 
password MYPASSWORDGOESHERE refuse-eap nodefaultroute usepeerdns idle 1800 
mtu 1400 mru 1400 &

What happens ?
"Received Signal 15" MTPD ISSUE
https://wiki.linaro.org/LMG/Kernel/PPP#A.22Received_signal_15.22_mtpd_issue

Why the hell ?
Android GUI, appears to run the same daemons, with the same parameters, 
 Look here:

    
https://android.googlesource.com/platform/frameworks/base.git/+/master/services/core/java/com/android/server/connectivity/Vpn.java#1332

Read through startLegacyVpnPrivileged() function, pay attention to
next two chunks:

<<<<<<<<<<<<<<<<<<<<<<< cut here >>>>>>>>>>>>>>>>>>>>>>>>>
    case VpnProfile.TYPE_L2TP_IPSEC_PSK:
        racoon = new String[] {
            iface, profile.server, "udppsk", profile.ipsecIdentifier,
            profile.ipsecSecret, "1701",
        };

    ...

    case VpnProfile.TYPE_L2TP_IPSEC_PSK:
    case VpnProfile.TYPE_L2TP_IPSEC_RSA:
        mtpd = new String[] {
            iface, "l2tp", profile.server, "1701", profile.l2tpSecret,
            "name", profile.username, "password", profile.password,
            "linkname", "vpn", "refuse-eap", "nodefaultroute",
            "usepeerdns", "idle", "1800", "mtu", "1400", "mru", "1400",
        };
        break;
<<<<<<<<<<<<<<<<<<<<<<< cut here >>>>>>>>>>>>>>>>>>>>>>>>>

Please help me run my VPN from commandline so I can set it up to 
auto-connect always and have secure internet, please help me.
Any guidance, comments that I am a moron for willing to do this and 
everything is welcome.

Best Regards,
Magic

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/bbd254c6-7cf3-4093-ad94-7f2c957d6157%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to