LINUX.ORG.RU

[xl2tpd] Постоянный реконект: сonnection closed

 


0

1

Провайдер дает следующее:

l2tp.mai.ru (217.9.84.139) 
dns: 172.30.4.10

Настройки:
/etc/xl2tpd/xl2tpd.conf

[global]
access control = yes
[lac mai]
lns = l2tp.mai.ru
redial = yes
redial timeout = 10
require chap = yes
require authentication = no
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
require pap = no
autodial = yes
name = 6347

/etc/ppp/options.xl2tpd

unit 0
remotename l2tp
ipparam mai
connect /bin/true
mru 1460
mtu 1460
nodeflate
nobsdcomp
persist
maxfail 0
nopcomp
noaccomp
noauth
defaultroute
name 6347

/etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client	server	secret			IP addresses
63477 l2tp 12345

/etc/ppp/resolv.conf

nameserver 172.30.4.10

Сразу после загрузки:
netstat -rn

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
217.9.84.171    172.30.16.1     255.255.255.255 UGH       0 0          0 eth0
217.9.84.148    172.30.16.1     255.255.255.255 UGH       0 0          0 eth0
217.9.90.134    172.30.16.1     255.255.255.255 UGH       0 0          0 eth0
172.30.4.0      172.30.16.1     255.255.255.0   UG        0 0          0 eth0
172.30.1.0      172.30.16.1     255.255.255.0   UG        0 0          0 eth0
172.30.0.0      172.30.16.1     255.255.255.0   UG        0 0          0 eth0
172.30.3.0      172.30.16.1     255.255.255.0   UG        0 0          0 eth0
172.30.2.0      172.30.16.1     255.255.255.0   UG        0 0          0 eth0
172.16.64.0     172.30.16.1     255.255.252.0   UG        0 0          0 eth0
172.30.16.0     0.0.0.0         255.255.248.0   U         0 0          0 eth0
192.168.0.0     172.30.16.1     255.255.240.0   UG        0 0          0 eth0
172.16.0.0      172.30.16.1     255.255.0.0     UG        0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 l

sudo xl2tpd -D

xl2tpd[2063]: setsockopt recvref[22]: Protocol not available
xl2tpd[2063]: L2TP kernel support not detected.
xl2tpd[2063]: xl2tpd version xl2tpd-1.2.4 started on darkstar PID:2063
xl2tpd[2063]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[2063]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[2063]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[2063]: Forked again by Xelerance (www.xelerance.com) (C) 2006
xl2tpd[2063]: Listening on IP address 0.0.0.0, port 1701
xl2tpd[2063]: Connecting to host l2tp.mai.ru, port 1701
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: Maximum retries exceeded for tunnel 32947.  Closing.
^Cxl2tpd[2063]: death_handler: Fatal signal 2 received
xl2tpd[2063]: udp_xmit failed with err=-1:Network is unreachable
xl2tpd[2063]: Connection 0 closed to 217.9.84.139, port 1701 (Server closing

Тогда добавляю маршрут: (217.9.84.139 - l2tp.mai.ru , 172.30.16.1 - nameserver из /etc/resolv.conf)

route add -net 217.9.84.139 netmask 255.255.255.255 gw 172.30.16.1

Заново запускаю: sudo xl2tpd -D (полный лог http://paste.org.ru/?no1gqa - идет постоянный реконект

xl2tpd[2075]: setsockopt recvref[22]: Protocol not available
xl2tpd[2075]: L2TP kernel support not detected.
xl2tpd[2075]: xl2tpd version xl2tpd-1.2.4 started on darkstar PID:2075
xl2tpd[2075]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[2075]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[2075]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[2075]: Forked again by Xelerance (www.xelerance.com) (C) 2006
xl2tpd[2075]: Listening on IP address 0.0.0.0, port 1701
xl2tpd[2075]: Connecting to host l2tp.mai.ru, port 1701
xl2tpd[2075]: Connection established to 217.9.84.139, 1701.  Local: 61323, Remote: 61652 (ref=0/0).
xl2tpd[2075]: Calling on tunnel 61323
xl2tpd[2075]: Call established with 217.9.84.139, Local: 17859, Remote: 4117, Serial: 1 (ref=0/0)
xl2tpd[2075]: start_pppd: I'm running: 
xl2tpd[2075]: "/usr/sbin/pppd" 
xl2tpd[2075]: "passive" 
xl2tpd[2075]: "nodetach" 
xl2tpd[2075]: ":" 
xl2tpd[2075]: "name" 
xl2tpd[2075]: "63477" 
xl2tpd[2075]: "debug" 
xl2tpd[2075]: "file" 
xl2tpd[2075]: "/etc/ppp/options.xl2tpd" 
xl2tpd[2075]: "/dev/pts/4" 
xl2tpd[2075]: control_finish: Connection closed to 217.9.84.139, serial 1 (SSS Manager disconnected session)
xl2tpd[2075]: Terminating pppd: sending TERM signal to pid 2078
xl2tpd[2075]: pppd 2078 successfully terminated
xl2tpd[2075]: control_finish: Connection closed to 217.9.84.139, port 1701 (No application/session timer expired), Local: 61323, Remote: 61652
xl2tpd[2075]: Connecting to host l2tp.mai.ru, port 1701
xl2tpd[2075]: Connection established to 217.9.84.139, 1701.  Local: 28005, Remote: 50779 (ref=0/0).
xl2tpd[2075]: Calling on tunnel 28005
xl2tpd[2075]: Call established with 217.9.84.139, Local: 48773, Remote: 43483, Serial: 2 (ref=0/0)
...

/etc/resolv.conf (автоматом получает)

# Generated by dhcpcd from eth0
# /etc/resolv.conf.head can replace this line
domain mai.net
nameserver 172.30.16.1
# /etc/resolv.conf.tail can replace this line

/etc/rc.d/rc.inet1.conf (только измененное)

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]="l2tp.mai.ru"

# Default gateway IP address:
GATEWAY="l2tp.mai.ru"

ifconfig -a

eth0      Link encap:Ethernet  HWaddr 6C:F0:49:02:60:48  
          inet addr:172.30.20.173  Bcast:172.30.23.255  Mask:255.255.248.0
          inet6 addr: fe80::6ef0:49ff:fe02:6048/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18895 errors:0 dropped:55 overruns:0 frame:0
          TX packets:253 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1493159 (1.4 Mb)  TX bytes:20213 (19.7 Kb)
          Interrupt:40 Base address:0xe000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:200 (200.0 b)  TX bytes:200 (200.0 b

Т.о. локальные ресурсы доступны, сервер пингуется, но идет постоянное переподключение xl2tpd.
Подскажите пожалуйста, что не так и как исправить проблему?


upd: Добавляю DNS (172.30.4.10):

sudo ip route add 217.9.0.0/24 via 172.30.16.1
sudo ip route add 172.30.4.10 via 172.30.16.1
Проблема остается.

l3ft
() автор топика

up: актуально

l3ft
() автор топика

Решено: взял новый аккаунт - проблема исчезла.

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