Estou tentando usar uma conexão VPN simples do Android 4.4.4 para o combo openswan / xl2tpd / pppd. o IPSec SA funciona, mas o xl2tpd em um ponto termina o pppd e isso aparece nos logs:
xl2tpd[17990]: handle_avps: handling avp's for tunnel 46247, call 0
xl2tpd[17990]: message_type_avp: message type 4 (Stop-Control-Connection-Notification)
xl2tpd[17990]: assigned_tunnel_avp: using peer's tunnel 54725
xl2tpd[17990]: result_code_avp: avp is incorrect size. 8 < 10
xl2tpd[17990]: handle_avps: Bad exit status handling attribute 1 (Result Code) on mandatory packet.
xl2tpd[17990]: handle_packet: bad AVP handling!
xl2tpd[17990]: network_thread: bad packet
xl2tpd[17990]: build_fdset: closing down tunnel 46247
xl2tpd[17990]: Terminating pppd: sending TERM signal to pid 17991
xl2tpd[17990]: Connection 54725 closed to 87.114.120.198, port 50027 (Result Code: expected at least 10, got 8)
Existem muitos pedidos de ajuda on-line, mas sem sucesso:
Minha configuração xl2tpd:
cat /etc/xl2tpd/xl2tpd.conf
[global]
ipsec saref = yes
port = 1701
debug avp = yes
debug tunnel = yes
debug avp = yes
debug packet = no
debug network = yes
debug state = yes
[lns default]
ip range = 10.152.2.2-10.152.2.254
local ip = 10.152.2.1
require chap = yes
refuse pap = yes
require authentication = yes
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes
unix authentication = no
ESCLARECIMENTO: A configuração existente funciona bem com o iOS 7 no iPad