[Openswan Users] xl2tpd vpn logging
Oguz Yilmaz
oguzyilmazlist at gmail.com
Sat Apr 17 02:34:16 EDT 2010
I have problems with logging with openswan-xl2tpd.
I was able to get only the logs below:
Apr 17 09:13:49 2010 xl2tpd[21017]: Connection established to
12.34.56.78, 1701. Local: 15025, Remote: 2 (ref=0/0). LNS session is
\'default\'
Apr 17 09:13:49 2010 xl2tpd[21017]: Call established with 12.34.56.78,
Local: 41684, Remote: 1, Serial: 0
Apr 17 09:13:49 2010 pppd[21273]: pppd 2.4.4 started by root, uid 0
Apr 17 09:13:49 2010 pppd[21273]: Using interface ppp0
Apr 17 09:13:49 2010 pppd[21273]: Connect: ppp0 <--> /dev/pts/2
Apr 17 09:13:53 2010 pppd[21273]: Unsupported protocol \'IPv6 Control
Protovol\' (0x8057) received
Apr 17 09:13:53 2010 pppd[21273]: Cannot determine ethernet address
for proxy ARP
Apr 17 09:13:53 2010 pppd[21273]: local IP address 10.11.11.2
Apr 17 09:13:53 2010 pppd[21273]: remote IP address 10.11.10.10
I have enabled log options in /etc/pp/options.xl2tpd
logfd 2
logfile /var/log/l2tpd.log
Now I have more logs in /var/log/l2tpd.log. However, No Time and Date
is printed.
My question is, How can I get user name, login time, logout time, L2tp
IP in a log file.
xl2tpd is xl2tpd-1.1.12
Best Regards,
xl2tpd.conf:
[global]
ipsec saref = yes
[lns default]
ip range = 10.11.10.10-10.11.10.20
local ip = 10.11.11.2
require chap = yes
refuse pap = yes
require authentication = yes
name = LinuxVPNserver
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes
/etc/ppp/options.xl2tpd:
ipcp-accept-local
ipcp-accept-remote
ms-dns 192.168.1.1
ms-dns 192.168.1.3
ms-wins 192.168.1.2
ms-wins 192.168.1.4
noccp
auth
crtscts
idle 1800
mtu 1410
mru 1410
nodefaultroute
debug
lock
proxyarp
connect-delay 5000
require-mschap-v2
plugin winbind.so
ntlm_auth-helper '/usr/bin/ntlm_auth --helper-protocol=ntlm-server-1'
/var/log/l2tpd.log:
using channel 14
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <mru 1410> <asyncmap 0x0> <auth chap MS-v2>
<magic 0xdbaab767> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <mru 1400> <magic 0x117c0ede> <pcomp>
<accomp> <callback CBCP>]
sent [LCP ConfRej id=0x0 <callback CBCP>]
rcvd [LCP ConfAck id=0x1 <mru 1410> <asyncmap 0x0> <auth chap MS-v2>
<magic 0xdbaab767> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <mru 1400> <magic 0x117c0ede> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <mru 1400> <magic 0x117c0ede> <pcomp> <accomp>]
sent [CHAP Challenge id=0x96 <54fc717882e460f5fb46a728a9508166>, name
= "LinuxVPNserver"]
rcvd [LCP Ident id=0x2 magic=0x117c0ede "MSRASV5.20"]
rcvd [LCP Ident id=0x3 magic=0x117c0ede "MSRAS-0-DESTEK01"]
rcvd [LCP Ident id=0x4 magic=0x117c0ede
",\37777777700\37777777655\37777777705mK\37777777770G\37777777640\37777777712\37777777672~\t\37777777667\37777777732e"]
rcvd [CHAP Response id=0x96
<b65161211c6ef175073fdceac84e5ccd0000000000000000c5825d8cab89cc1d724559fcdabf88dd161f717810daf3c200>,
name = "Administrator"]
sent [CHAP Success id=0x96 "S=53FDE295D14113D61F43C223F4285877A1945D2E
M=Access granted"]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.11.11.2>]
rcvd [IPV6CP ConfReq id=0x5 <addr fe80::d00e:0dbb:4e08:680e>]
Unsupported protocol 'IPv6 Control Protovol' (0x8057) received
sent [LCP ProtRej id=0x2 80 57 01 05 00 0e 01 0a d0 0e 0d bb 4e 08 68 0e]
rcvd [CCP ConfReq id=0x6 <mppe +H -M -S -L -D -C>]
Unsupported protocol 'Compression Control Protocol' (0x80fd) received
sent [LCP ProtRej id=0x3 80 fd 01 06 00 0a 12 06 01 00 00 00]
rcvd [IPCP ConfReq id=0x7 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-wins
0.0.0.0> <ms-dns3 0.0.0.0> <ms-wins 0.0.0.0>]
sent [IPCP ConfNak id=0x7 <addr 10.11.10.10> <ms-dns1 192.168.1.1>
<ms-wins 192.168.1.2> <ms-dns3 192.168.1.3> <ms-wins 192.168.1.4>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 10.11.11.2>]
rcvd [IPCP ConfReq id=0x8 <addr 10.11.10.10> <ms-dns1 192.168.1.1>
<ms-wins 192.168.1.2> <ms-dns3 192.168.1.3> <ms-wins 192.168.1.4>]
sent [IPCP ConfAck id=0x8 <addr 10.11.10.10> <ms-dns1 192.168.1.1>
<ms-wins 192.168.1.2> <ms-dns3 192.168.1.3> <ms-wins 192.168.1.4>]
rcvd [IPCP ConfAck id=0x2 <addr 10.11.11.2>]
Cannot determine ethernet address for proxy ARP
local IP address 10.11.11.2
remote IP address 10.11.10.10
Script /etc/ppp/ip-up started (pid 7776)
Script /etc/ppp/ip-up finished (pid 7776), status = 0x0
More information about the Users
mailing list