LINUX.ORG.RU
ФорумAdmin

xl2tpd проблемы с авторизацией

 


0

1

Пытаюсь подключиться из под Ubuntu 14.04 к билайн посредством xl2tpd.

May 13 21:17:56 tylan xl2tpd[12569]: network_thread: select timeout
May 13 21:17:56 tylan xl2tpd[12569]: get_call: allocating new tunnel for  host 127.0.0.1, port 1701.
May 13 21:17:56 tylan xl2tpd[12569]: Connecting to host 127.0.0.1, port 1701
May 13 21:17:56 tylan xl2tpd[12569]: control_finish: message type is (null)(0).  Tunnel is 0, call is 0.
May 13 21:17:56 tylan xl2tpd[12569]: control_finish: sending SCCRQ
May 13 21:17:56 tylan xl2tpd[12569]: network_thread: recv packet from 127.0.0.1, size = 102, tunnel = 0, call = 0 ref=0 refhim=0
May 13 21:17:56 tylan xl2tpd[12569]: get_call: allocating new tunnel for host 127.0.0.1, port 1701.
May 13 21:17:56 tylan xl2tpd[12569]: handle_avps: handling avp's for tunnel 10753, call 543649385
May 13 21:17:56 tylan xl2tpd[12569]: message_type_avp: message type 1 (Start-Control-Connection-Request)
May 13 21:17:56 tylan xl2tpd[12569]: protocol_version_avp: peer is using version 1, revision 0.
May 13 21:17:56 tylan xl2tpd[12569]: framing_caps_avp: supported peer frames: async sync
May 13 21:17:56 tylan xl2tpd[12569]: bearer_caps_avp: supported peer bearers:
May 13 21:17:56 tylan xl2tpd[12569]: firmware_rev_avp: peer reports firmware version 1680 (0x0690)
May 13 21:17:56 tylan xl2tpd[12569]: hostname_avp: peer reports hostname 'tylan'
May 13 21:17:56 tylan xl2tpd[12569]: vendor_avp: peer reports vendor 'xelerance.com'
May 13 21:17:56 tylan xl2tpd[12569]: assigned_tunnel_avp: using peer's tunnel 35669
May 13 21:17:56 tylan xl2tpd[12569]: receive_window_size_avp: peer wants RWS of 8.  Will use flow control.
May 13 21:17:56 tylan xl2tpd[12569]: control_finish: message type is Start-Control-Connection-Request(1).  Tunnel is 35669, call is 0.
May 13 21:17:56 tylan xl2tpd[12569]: control_finish: Denied connection to unauthorized peer 127.0.0.1
May 13 21:17:56 tylan xl2tpd[12569]: network_thread: bad packet
May 13 21:17:56 tylan xl2tpd[12569]: build_fdset: closing down tunnel 10753
May 13 21:17:56 tylan xl2tpd[12569]: Connection 35669 closed to 127.0.0.1, port 1701 (No Authorization)
May 13 21:17:56 tylan xl2tpd[12569]: network_thread: recv packet from 127.0.0.1, size = 12, tunnel = 35669, call = 0 ref=0 refhim=0
May 13 21:17:56 tylan xl2tpd[12569]: network_thread: recv packet from 127.0.0.1, size = 54, tunnel = 35669, call = 0 ref=0 refhim=0
May 13 21:17:56 tylan xl2tpd[12569]: handle_avps: handling avp's for tunnel 35669, call 0
May 13 21:17:56 tylan xl2tpd[12569]: message_type_avp: message type 4 (Stop-Control-Connection-Notification)
May 13 21:17:56 tylan xl2tpd[12569]: assigned_tunnel_avp: using peer's tunnel 10753
May 13 21:17:56 tylan xl2tpd[12569]: result_code_avp: peer closing for reason 2 (General error--Error Code indicates the problem), error = 6 (No Authorization)
May 13 21:17:56 tylan xl2tpd[12569]: control_finish: message type is Stop-Control-Connection-Notification(4).  Tunnel is 0, call is 0.
May 13 21:17:56 tylan xl2tpd[12569]: control_finish: Connection closed to 127.0.0.1, port 1701 (No Authorization), Local: 35669, Remote: 10753
May 13 21:17:56 tylan xl2tpd[12569]: build_fdset: closing down tunnel 35669
May 13 21:17:56 tylan xl2tpd[12569]: Will redial in 100 seconds
May 13 21:17:56 tylan xl2tpd[12569]: network_thread: recv packet from 127.0.0.1, size = 12, tunnel = 10753, call = 0 ref=0 refhim=0
May 13 21:17:56 tylan xl2tpd[12569]: build_fdset: closing down tunnel 10753

My config files.

root@tylan:~# more /etc/xl2tpd/xl2tpd.conf

[global]
access control = no
debug avp = yes
debug network = yes
debug packet = yes
debug state = yes
debug tunnel = yes
auth file = /etc/xl2tpd/l2tp-secrets

[lac beeline]
lns = l2tp.internet.beeline.kz
redial = yes
redial timeout = 100
require chap = yes
require authentication = no
name = 0011084592
ppp debug = no
require pap = no
tunnel rws = 8
autodial = yes
pppoptfile = /etc/xl2tpd/options.xl2tpd
tx bps = 100000000

root@tylan:~# more /etc/xl2tpd/options.xl2tpd 
unit 0
name 0011084592
remotename l2tp
ipparam beeline
connect /bin/true
mru 1400
mtu 1400
nodeflate
nobsdcomp
persist
maxfail 0
holdoff 10
nopcomp
noaccomp
defaultroute
replacedefaultroute
more /etc/xl2tpd/l2tp-secrets 
0011084592 * blablabla

If I add the lns option to /etc/xl2tpd/xl2tpd.conf I get an errors

[lns beeline] lac = 0.0.0.0-255.255.255.254

May 13 21:34:05 tylan xl2tpd[12851]: setsockopt recvref[30]: Protocol not available
May 13 21:34:05 tylan xl2tpd[12851]: This binary does not support kernel L2TP.
May 13 21:34:05 tylan xl2tpd[12852]: xl2tpd version xl2tpd-1.3.6 started on tylan PID:12852
May 13 21:34:05 tylan xl2tpd[12852]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
May 13 21:34:05 tylan xl2tpd[12852]: Forked by Scott Balmos and David Stipp, (C) 2001
May 13 21:34:05 tylan xl2tpd[12852]: Inherited by Jeff McAdams, (C) 2002
May 13 21:34:05 tylan xl2tpd[12852]: Forked again by Xelerance (www.xelerance.com) (C) 2006
May 13 21:34:05 tylan xl2tpd[12852]: Listening on IP address 0.0.0.0, port 1701
May 13 21:34:05 tylan xl2tpd[12852]: get_call: allocating new tunnel for host 127.0.0.1, port 1701.
May 13 21:34:05 tylan xl2tpd[12852]: Connecting to host l2tp.internet.beeline.kz, port 1701
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: message type is (null)(0).  Tunnel is 0, call is 0.
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: sending SCCRQ
May 13 21:34:05 tylan xl2tpd[12852]: network_thread: recv packet from 127.0.0.1, size = 102, tunnel = 0, call = 0 ref=0 refhim=0
May 13 21:34:05 tylan xl2tpd[12852]: get_call: allocating new tunnel for host 127.0.0.1, port 1701.
May 13 21:34:05 tylan xl2tpd[12852]: handle_avps: handling avp's for tunnel 55048, call 0
May 13 21:34:05 tylan xl2tpd[12852]: message_type_avp: message type 1 (Start-Control-Connection-Request)
May 13 21:34:05 tylan xl2tpd[12852]: protocol_version_avp: peer is using version 1, revision 0.
May 13 21:34:05 tylan xl2tpd[12852]: framing_caps_avp: supported peer frames: async sync
May 13 21:34:05 tylan xl2tpd[12852]: bearer_caps_avp: supported peer bearers:
May 13 21:34:05 tylan xl2tpd[12852]: firmware_rev_avp: peer reports firmware version 1680 (0x0690)
May 13 21:34:05 tylan xl2tpd[12852]: hostname_avp: peer reports hostname 'tylan'
May 13 21:34:05 tylan xl2tpd[12852]: vendor_avp: peer reports vendor 'xelerance.com'
May 13 21:34:05 tylan xl2tpd[12852]: assigned_tunnel_avp: using peer's tunnel 4974
May 13 21:34:05 tylan xl2tpd[12852]: receive_window_size_avp: peer wants RWS of 8.  Will use flow control.
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: message type is Start-Control-Connection-Request(1).  Tunnel is 4974, call is 0.
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: sending SCCRP
May 13 21:34:05 tylan xl2tpd[12852]: network_thread: recv packet from 127.0.0.1, size = 102, tunnel = 4974, call = 0 ref=0 refhim=0
May 13 21:34:05 tylan xl2tpd[12852]: handle_avps: handling avp's for tunnel 4974, call 0
May 13 21:34:05 tylan xl2tpd[12852]: message_type_avp: message type 2 (Start-Control-Connection-Reply)
May 13 21:34:05 tylan xl2tpd[12852]: protocol_version_avp: peer is using version 1, revision 0.
May 13 21:34:05 tylan xl2tpd[12852]: framing_caps_avp: supported peer frames: async sync
May 13 21:34:05 tylan xl2tpd[12852]: bearer_caps_avp: supported peer bearers:
May 13 21:34:05 tylan xl2tpd[12852]: firmware_rev_avp: peer reports firmware version 1680 (0x0690)
May 13 21:34:05 tylan xl2tpd[12852]: hostname_avp: peer reports hostname 'tylan'
May 13 21:34:05 tylan xl2tpd[12852]: vendor_avp: peer reports vendor 'xelerance.com'
May 13 21:34:05 tylan xl2tpd[12852]: assigned_tunnel_avp: using peer's tunnel 55048
May 13 21:34:05 tylan xl2tpd[12852]: receive_window_size_avp: peer wants RWS of 4.  Will use flow control.
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: message type is Start-Control-Connection-Reply(2).  Tunnel is 55048, call is 0.
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: sending SCCCN
May 13 21:34:05 tylan xl2tpd[12852]: Connection established to 127.0.0.1, 1701.  Local: 4974, Remote: 55048 (ref=0/0).
May 13 21:34:05 tylan xl2tpd[12852]: Calling on tunnel 4974
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: message type is (null)(0).  Tunnel is 55048, call is 0.
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: sending ICRQ
May 13 21:34:05 tylan xl2tpd[12852]: network_thread: recv packet from 127.0.0.1, size = 20, tunnel = 55048, call = 0 ref=0 refhim=0
May 13 21:34:05 tylan xl2tpd[12852]: handle_avps: handling avp's for tunnel 55048, call 0
May 13 21:34:05 tylan xl2tpd[12852]: message_type_avp: message type 3 (Start-Control-Connection-Connected)
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: message type is Start-Control-Connection-Connected(3).  Tunnel is 4974, call is 0.
May 13 21:34:05 tylan xl2tpd[12852]: Connection established to 127.0.0.1, 1701.  Local: 55048, Remote: 4974 (ref=0/0).  LNS session is 'beeline'
May 13 21:34:05 tylan xl2tpd[12852]: network_thread: recv packet from 127.0.0.1, size = 48, tunnel = 55048, call = 0 ref=0 refhim=0
May 13 21:34:05 tylan xl2tpd[12852]: handle_avps: handling avp's for tunnel 55048, call 0
May 13 21:34:05 tylan xl2tpd[12852]: message_type_avp: message type 10 (Incoming-Call-Request)
May 13 21:34:05 tylan xl2tpd[12852]: message_type_avp: new incoming call
May 13 21:34:05 tylan xl2tpd[12852]: assigned_call_avp: using peer's call 27650
May 13 21:34:05 tylan xl2tpd[12852]: call_serno_avp: serial number is 1
May 13 21:34:05 tylan xl2tpd[12852]: bearer_type_avp: peer bears:digital
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: message type is Incoming-Call-Request(10).  Tunnel is 4974, call is 0.
May 13 21:34:05 tylan xl2tpd[12852]: call_close: Call 3586 to 127.0.0.1 disconnected
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: Out of IP addresses on tunnel 4974!
May 13 21:34:05 tylan xl2tpd[12852]: network_thread: bad packet
May 13 21:34:05 tylan xl2tpd[12852]: network_thread: recv packet from 127.0.0.1, size = 12, tunnel = 4974, call = 0 ref=0 refhim=0
May 13 21:34:05 tylan xl2tpd[12852]: network_thread: recv packet from 127.0.0.1, size = 61, tunnel = 4974, call = 27650 ref=0 refhim=0
May 13 21:34:05 tylan xl2tpd[12852]: handle_avps: handling avp's for tunnel 4974, call 27650
May 13 21:34:05 tylan xl2tpd[12852]: message_type_avp: message type 14 (Call-Disconnect-Notify)
May 13 21:34:05 tylan xl2tpd[12852]: result_code_avp: peer closing for reason 2 (General error--Error Code indicates the problem), error = 4 (No available IP address)
May 13 21:34:05 tylan xl2tpd[12852]: assigned_call_avp: using peer's call 3586
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: message type is Call-Disconnect-Notify(14).  Tunnel is 55048, call is 0.
May 13 21:34:05 tylan xl2tpd[12852]: control_finish: Connection closed to 127.0.0.1, serial 1 (No available IP address)
May 13 21:34:05 tylan xl2tpd[12852]: network_thread: recv packet from 127.0.0.1, size = 12, tunnel = 4974, call = 0 ref=0 refhim=0
May 13 21:34:05 tylan xl2tpd[12852]: network_thread: recv packet from 127.0.0.1, size = 12, tunnel = 55048, call = 0 ref=0 refhim=0
May 13 21:34:06 tylan xl2tpd[12852]: network_thread: select timeout

На соседней машине с такими же конфигами подключается без проблем.


get_call: allocating new tunnel for host 127.0.0.1, port 1701

Это как-то странно, там точно 127.0.0.1? У вас l2tp.internet.beeline.kz в какой ip-адрес резолвится и каким DNS-сервером?

mky ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.