gentoo l2tp ipsec client
###connect to unbutu strongswan xl2tpd
emerge libreswan xl2tpd
/etc/ipsec.d/xxx.conf
conn xxx
authby=secret
pfs=no
rekey=no
keyingtries=3
type=transport
left=%defaultroute
leftprotoport=udp/l2tp
leftid=@vpn.l2tp
right=8.8.9.9 # internet ip
rightid=10.0.1.2 #
rightprotoport=udp/l2tp
auto=add
/etc/ipsec.d/xxx.secrets
@vpn.l2tp %any : PSK "******"
/etc/xl2tpd/xl2tpd.conf