title: openswan l2tp server to android client
body: <p>I'm trying to figure out how to set up openvpn on my linux mint so I can connect to it with my android (T-Mobile HTC MyTouch 4G Slide) device.  I think I'm part way there but I am still having fits getting it to connect.</p>
  
  <p>So far I have installed openswan, openssl and tinyca
  I was able to create a CA certificate and a request certificate in tinyca. If I am reading it correct it creates them using the openssl settings so I copied the /etc/ssl/cert/MyserverCert.pem and /etc/ssl/private/MyserverKey.pem to the appropriate directories in /etc/ipsec.d/*
  I copied the example l2tp-psk.conf into /etc/ipsec.d/ and modified the left to my eth0 interface address, and leftnexthop to my router address, saved then restarted ipsec service.
  I generated a Myserver.crt file using tinyca from the existing ssl keys and sent it to my phone and was able to import it.</p>
  
  <p>Where I'm confused is when I try to set up an L2TP PSK vpn in my phone, it is asking for 'username'. It also has a setting when you set up the connection that asks for 'IPSec pre-shared key' - I'm assuming this is the name I gave the .crt settings when I imported them?</p>
  
  <p>Any other tips/suggestions would be greatly appreciated (like where to look in log files to see what might be failing and why both on the phone and on the server)</p>
  
  <p>Thanks in advance for any tips!</p>