У меня проблема с l2tpvpn на проекте yocto. Мой сервер на ubuntu 18.04, и я настроил его клиент на ubuntu и успешно работал, но с yocto он проиграл. когда я запускаю команду /etc/init.d/xl2tpd restart
нет никаких установленных на netstart. Мне нужна помощь. Если есть идеи. Спасибо.
IP-сервер: 192.168.1.11 IP-клиент yocto: 192.168.1.5
/etc/xl2tpd/xl2tpd.conf
[lac qavpn]
lns = 192.168.1.11
redial = yes
autodial = yes
require chap = yes
refuse pap = yes
require authentication = yes
ppp debug = yes
pppoptfile = /etc/ppp/options.l2tpd.client
length bit = yes
/etc/ppp/options.l2tpd.client
ipcp-accept-local
ipcp-accept-remote
mtu 1410
mru 1410
noccp
noauth
idle 1800
defaultroute
192.168.20.1:192.168.20.10
debug
usepeerdns
proxyarp
connect-delay 5000
name atsjsc
password ats123
cat / var / log / messege
Jul 15 09:45:01 ccimx6ulstarter daemon.crit xl2tpd[17451]: death_handler: Fatal signal 15 received
Jul 15 09:45:02 ccimx6ulstarter daemon.crit xl2tpd[17499]: setsockopt recvref[30]: Protocol not available
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17499]: This binary does not support kernel L2TP.
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: xl2tpd version xl2tpd-1.3.9 started on ccimx6ulstarter PID:17500
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Forked by Scott Balmos and David Stipp, (C) 2001
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Inherited by Jeff McAdams, (C) 2002
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Forked again by Xelerance (www.xelerance.com) (C) 2006-2016
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Listening on IP address 0.0.0.0, port 1701
Jul 15 09:45:02 ccimx6ulstarter daemon.notice xl2tpd[17500]: Connecting to host 192.168.1.11, port 1701
Jul 15 09:45:02 ccimx6ulstarter daemon.notice xl2tpd[17500]: Connection established to 192.168.1.11, 1701. Local: 53191, Remote: 19445 (ref=0/0).
Jul 15 09:45:02 ccimx6ulstarter daemon.notice xl2tpd[17500]: Calling on tunnel 53191
Jul 15 09:45:02 ccimx6ulstarter daemon.notice xl2tpd[17500]: Connection established to 192.168.1.11, 1701. Local: 53191, Remote: 19445 (ref=0/0).
Jul 15 09:45:02 ccimx6ulstarter daemon.notice xl2tpd[17500]: Calling on tunnel 53191
Jul 15 09:45:02 ccimx6ulstarter daemon.notice xl2tpd[17500]: Call established with 192.168.1.11, Local: 15216, Remote: 62372, Serial: 1 (ref=0/0)
Jul 15 09:45:02 ccimx6ulstarter daemon.notice xl2tpd[17500]: Call established with 192.168.1.11, Local: 15216, Remote: 62372, Serial: 1 (ref=0/0)
Jul 15 09:45:02 ccimx6ulstarter daemon.warn xl2tpd[17500]: start_pppd: PPP already started on call!
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: control_finish: Connection closed to 192.168.1.11, port 1701 (), Local: 53191, Remote: 19445
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Can not find tunnel 53191 (refhim=0)
Jul 15 09:45:02 ccimx6ulstarter daemon.debug xl2tpd[17500]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 53191 Dumping.
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Can not find tunnel 53191 (refhim=0)
Jul 15 09:45:02 ccimx6ulstarter daemon.debug xl2tpd[17500]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 53191 Dumping.
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Can not find tunnel 53191 (refhim=0)
Jul 15 09:45:02 ccimx6ulstarter daemon.debug xl2tpd[17500]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 53191 Dumping.
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Can not find tunnel 53191 (refhim=0)
Jul 15 09:45:02 ccimx6ulstarter daemon.debug xl2tpd[17500]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 53191 Dumping.
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Can not find tunnel 53191 (refhim=0)
Jul 15 09:45:02 ccimx6ulstarter daemon.debug xl2tpd[17500]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 53191 Dumping.
Jul 15 09:45:02 ccimx6ulstarter daemon.info xl2tpd[17500]: Can not find tunnel 53191 (refhim=0)
================================================== ===========
Это подключение к серверу
root@ubuntu:~# netstat -apn|grep xl2tpd
udp 0 0 192.168.1.11:1701 192.168.1.10:1701 ESTABLISHED 3408/xl2tpd
udp 0 0 192.168.1.11:1701 192.168.1.5:1701 ESTABLISHED 3408/xl2tpd
udp 0 0 192.168.1.11:1701 192.168.1.5:1701 ESTABLISHED 3408/xl2tpd
udp 0 0 0.0.0.0:1701 0.0.0.0:* 3408/xl2tpd
unix 2 [ ] DGRAM 70609 3408/xl2tpd ``
Jul 15 02:45:32 ubuntu xl2tpd[3558]: control_finish: Peer requested tunnel 28727 twice, ignoring second one.
Jul 15 02:45:32 ubuntu xl2tpd[3558]: Connection established to 192.168.1.5, 1701. Local: 22292, Remote: 28727 (ref=0/0). LNS session is 'default'
Jul 15 02:45:32 ubuntu xl2tpd[3558]: check_control: Received out of order control packet on tunnel 28727 (got 1, expected 2)
Jul 15 02:45:32 ubuntu xl2tpd[3558]: handle_packet: bad control packet!
Jul 15 02:45:32 ubuntu xl2tpd[3558]: check_control: Received out of order control packet on tunnel 28727 (got 2, expected 3)
Jul 15 02:45:32 ubuntu xl2tpd[3558]: handle_packet: bad control packet!
Jul 15 02:45:32 ubuntu xl2tpd[3558]: message_type_avp: attempting to negotiate SCCCN with state != SCCRP!
Jul 15 02:45:32 ubuntu xl2tpd[3558]: handle_avps: Bad exit status handling attribute 0 (Message Type) on mandatory packet.
Jul 15 02:45:32 ubuntu xl2tpd[3558]: Connection 28727 closed to 192.168.1.5, port 1701 ()
Jul 15 02:45:32 ubuntu xl2tpd[3558]: check_control: Received out of order control packet on tunnel 28727 (got 3, expected 4)
Jul 15 02:45:32 ubuntu xl2tpd[3558]: handle_packet: bad control packet!
Jul 15 02:45:32 ubuntu xl2tpd[3558]: check_control: Received out of order control packet on tunnel 28727 (got 4, expected 5)
Jul 15 02:45:32 ubuntu xl2tpd[3558]: handle_packet: bad control packet!
Jul 15 02:45:32 ubuntu xl2tpd[3558]: get_call: can't find call 24915 in tunnel 22292#012 (ref=0/0)
Jul 15 02:45:32 ubuntu xl2tpd[3558]: get_call: can't find call 24915 in tunnel 22292#012 (ref=0/0)
Jul 15 02:45:32 ubuntu xl2tpd[3558]: check_control: Received out of order control packet on tunnel 28727 (got 5, expected 6)
Jul 15 02:45:32 ubuntu xl2tpd[3558]: get_call: can't find call 24915 in tunnel 22292#012 (ref=0/0)
Jul 15 02:45:32 ubuntu xl2tpd[3558]: get_call: can't find call 24915 in tunnel 22292#012 (ref=0/0)
Jul 15 02:45:32 ubuntu xl2tpd[3558]: check_control: Received out of order control packet on tunnel 28727 (got 6, expected 7)
Jul 15 02:45:39 ubuntu dhclient[2813]: DHCPREQUEST of 192.168.1.11 on ens33 to 192.168.1.1 port 67 (xid=0x31c7cd77)
Jul 15 02:45:47 ubuntu dhclient[2813]: DHCPREQUEST of 192.168.1.11 on ens33 to 192.168.1.1 port 67 (xid=0x31c7cd77)
Jul 15 02:45:57 ubuntu pppd[3577]: sent [LCP EchoReq id=0x1 magic=0xecca1a2c]
Jul 15 02:45:57 ubuntu pppd[3577]: rcvd [LCP EchoReq id=0x1 magic=0x239bd899]
Jul 15 02:45:57 ubuntu pppd[3577]: sent [LCP EchoRep id=0x1 magic=0xecca1a2c]
Jul 15 02:45:57 ubuntu pppd[3577]: rcvd [LCP EchoRep id=0x1 magic=0x239bd899]
Jul 15 02:46:00 ubuntu dhclient[2813]: DHCPREQUEST of 192.168.1.11 on ens33 to 192.168.1.1 port 67 (xid=0x31c7cd77)
Jul 15 02:46:02 ubuntu xl2tpd[3558]: control_finish: Peer requested tunnel 32893 twice, ignoring second one.
Jul 15 02:46:02 ubuntu xl2tpd[3558]: Connection established to 192.168.1.5, 1701. Local: 37223, Remote: 32893 (ref=0/0). LNS session is 'default'
Jul 15 02:46:02 ubuntu xl2tpd[3558]: check_control: Received out of order control packet on tunnel 32893 (got 1, expected 2)
Jul 15 02:46:02 ubuntu xl2tpd[3558]: handle_packet: bad control packet!
Jul 15 02:46:02 ubuntu xl2tpd[3558]: message_type_avp: attempting to negotiate SCCCN with state != SCCRP!
Jul 15 02:46:02 ubuntu xl2tpd[3558]: handle_avps: Bad exit status handling attribute 0 (Message Type) on mandatory packet.
Jul 15 02:46:02 ubuntu xl2tpd[3558]: Connection 32893 closed to 192.168.1.5, port 1701 ()
Jul 15 02:46:02 ubuntu xl2tpd[3558]: check_control: Received out of order control packet on tunnel 32893 (got 2, expected 4)
Jul 15 02:46:02 ubuntu xl2tpd[3558]: handle_packet: bad control packet!
Jul 15 02:46:02 ubuntu xl2tpd[3558]: check_control: Received out of order control packet on tunnel 32893 (got 3, expected 4)
Jul 15 02:46:02 ubuntu xl2tpd[3558]: handle_packet: bad control packet!
Jul 15 02:46:02 ubuntu xl2tpd[3558]: check_control: Received out of order control packet on tunnel 32893 (got 4, expected 5)
Jul 15 02:46:02 ubuntu xl2tpd[3558]: handle_packet: bad control packet!
Jul 15 02:46:02 ubuntu xl2tpd[3558]: get_call: can't find call 57392 in tunnel 37223#012 (ref=0/0)
Jul 15 02:46:02 ubuntu xl2tpd[3558]: get_call: can't find call 57392 in tunnel 37223#012 (ref=0/0)