• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Need help on Android L2TP VPN client with Linux Openl2tpd server

Hi Frnds,

I am struggling with the below issue from the beginning with Android phone.

I am facing issues while establishing L2TP VPN connection between LG Optimus (Andoird Phone) and Linux Openl2tpd server. Please find the details below:

First connecting LG Optimus to Linux PC through WIFI.
Linux PC as WIFI Access point with IP 192.168.1.1 and Client(phone) got 192.168.1.100 from the Access point where dhcpd is running.

I am able to ping from 192.168.1.1 to 192.168.1.100.

Now, running openl2tpd server in linux pc which is shown below. Also, configured L2TP VPN in the phone. L2TP secret is not enabled in the phone.

username and password entered in the phone are "demo1" and "demo1" respectively same as mentioned in /etc/ppp/pap-secrets.

Captured the packets on server side, Client and server negotiated with few packets
SCCRQ,SCCRP,SCCCN,ZLB,ICRQ,ICRP,ICCN,PPP LCP configuration request and after this client is sending "port unreachable ICMP" packet to the server.

openl2tpd configuration is as below:
******************************************
ppp profile create profile_name=peer1 \
local_ipaddr=60.60.60.1 \
remote_ipaddr=60.60.60.2

peer profile create profile_name=peer1 \
peer_ipaddr=192.168.1.100 \
ppp_profile_name=peer1

tunnel profile modify profile_name=default \
our_udp_port=1701

system modify deny_remote_tunnel_creates=no \
tunnel_establish_timeout=60 \
session_establish_timeout=0 \
tunnel_persist_pend_timeout=60 \
session_persist_pend_timeout=30
******************************************

# cat /etc/ppp/pap-secrets
*****************************************
# Secrets for authentication using PAP
# client server secret IP addresses
demo1 * demo1 *
*****************************************

Anything related to configuration can be done on server side? or any issue related to port with Android?

Thank you very much in advance for valuable suggestions.
 
Back
Top Bottom