/etc/xl2tpd/xl2tpd.conf
[global]
port = 1701
access control = no
auth file =/etc/ppp/chap-secrets
rand source = dev[lns default]
exclusive = yes
hidden bit = yes
local ip = 10.20.0.2
require chap = yes
refuse pap = yes
refuse authentication = no
require authentication = yes
name = local
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
flow bit = yes
length bit = yes
/etc/ppp/chap-secrets
test local test 10.20.16.13
/etc/ppp/options.xl2tpd
ipcp-accept-local
ipcp-accept-remote
ms-dns 172.16.20.1
ms-dns 172.16.0.2noccp
auth
crtscts
idle 1800
mtu 1410
mru 1410
nodefaultroute
debug
lock
proxyarp
connect-delay 5000
Логи:
Oct 15 22:10:49 local xl2tpd[4547]: This binary does not support kernel L2TP.
Oct 15 22:10:49 local xl2tpd[4548]: xl2tpd version xl2tpd-1.1.12 started on local.hutor.net PID:4548
Oct 15 22:10:49 local xl2tpd[4548]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
Oct 15 22:10:49 local xl2tpd[4548]: Forked by Scott Balmos and David Stipp, (C) 2001
Oct 15 22:10:49 local xl2tpd[4548]: Inherited by Jeff McAdams, (C) 2002
Oct 15 22:10:49 local xl2tpd[4548]: Forked again by Xelerance (http://www.xelerance.com) (C) 2006
Oct 15 22:10:49 local xl2tpd[4548]: Listening on IP address 0.0.0.0, port 1701
Что бы я не делал – все время получаю:
Oct 15 22:11:10 local xl2tpd[4548]: Maximum retries exceeded for tunnel 59090. Closing.
Oct 15 22:11:10 local xl2tpd[4548]: Connection 12 closed to 172.16.16.13, port 1701 (Timeout)
Oct 15 22:11:25 local xl2tpd[4548]: Maximum retries exceeded for tunnel 23235. Closing.
Oct 15 22:11:25 local xl2tpd[4548]: Connection 12 closed to 172.16.16.13, port 1701 (Timeout)
Tcpdump:
22:12:35.108581 IP 172.16.16.13.l2tp > 172.16.20.1.l2tp: l2tp:[TLS](0/0)Ns=0,Nr=0 *MSGTYPE(SCCRQ) *PROTO_VER(1.0) *FRAMING_CAP(S) *BEARER_CAP() |...
22:12:36.120029 IP 172.16.16.13.l2tp > 172.16.20.1.l2tp: l2tp:[TLS](0/0)Ns=0,Nr=0 *MSGTYPE(SCCRQ) *PROTO_VER(1.0) *FRAMING_CAP(S) *BEARER_CAP() |...
22:12:37.108749 IP 172.16.16.1.l2tp > 172.16.16.13.l2tp: l2tp:[TLS](13/0)Ns=0,Nr=1 *MSGTYPE(SCCRP) *RANDOM_VECTOR(ee91f8df862bfe11a6aa0c1facc5be0a) *PROTO_VER(1.0) |...
22:12:37.108855 IP 172.16.16.1.l2tp > 172.16.16.13.l2tp: l2tp:[TLS](13/0)Ns=0,Nr=1 ZLB
22:12:38.108760 IP 172.16.16.1.l2tp > 172.16.16.13.l2tp: l2tp:[TLS](13/0)Ns=0,Nr=1 *MSGTYPE(SCCRP) *RANDOM_VECTOR(ee91f8df862bfe11a6aa0c1facc5be0a) *PROTO_VER(1.0) |...
22:12:38.132454 IP 172.16.16.13.l2tp > 172.16.20.1.l2tp: l2tp:[TLS](0/0)Ns=0,Nr=0 *MSGTYPE(SCCRQ) *PROTO_VER(1.0) *FRAMING_CAP(S) *BEARER_CAP() |...
22:12:38.132570 IP 172.16.16.1.l2tp > 172.16.16.13.l2tp: l2tp:[TLS](13/0)Ns=0,Nr=1 ZLB
22:12:39.108775 IP 172.16.16.1.l2tp > 172.16.16.13.l2tp: l2tp:[TLS](13/0)Ns=0,Nr=1 *MSGTYPE(SCCRP) *RANDOM_VECTOR(ee91f8df862bfe11a6aa0c1facc5be0a) *PROTO_VER(1.0) |...