Re: Building network-manager-l2tp on Centos 6.9 laptop
Posted: 2018/07/09 13:21:19
Ok, I had other work to do, but I'm back at this now.
I have on my list of things to do:
- when I am at home (and can therefore just plug into the router with a cable) disable NetworkManager and see if I get any success. That is not today unfortunately, but I will try this tomorrow if I get time
- get the log to be more verbose and/or give more logging information
- see if someone at the remote office is able to access the VPN server log
This afternoon, I'm going to focus on getting more logging.
I've added this to the xl2tpd.conf:
I don't seem to be getting any additional logging, either in /var/log/messages or in /var/log/xl2tpd.log (specified in /etc/ppp/options.l2tpd.client)
Today I am NOT modprobing pppol2tp. I notice that the /var/log/xl2tpd.log output is different with and without modprobing, but I'm not sure it is significant.
The xl2tp.log output with modprobe pppol2tp looks like this:
Without modprobing the xl2tpd.log output looks more like this:
Today my /var/log/messages looks like this (sometimes the call is established, but when it is the connection is terminated):
- How do I get more info? (more verbose output or more debug output)
I have on my list of things to do:
- when I am at home (and can therefore just plug into the router with a cable) disable NetworkManager and see if I get any success. That is not today unfortunately, but I will try this tomorrow if I get time
- get the log to be more verbose and/or give more logging information
- see if someone at the remote office is able to access the VPN server log
This afternoon, I'm going to focus on getting more logging.
I've added this to the xl2tpd.conf:
Code: Select all
[global]
debug avp = yes
debug network = yes
debug state = yes
debug packet = yes
debug tunnel = yes
Today I am NOT modprobing pppol2tp. I notice that the /var/log/xl2tpd.log output is different with and without modprobing, but I'm not sure it is significant.
The xl2tp.log output with modprobe pppol2tp looks like this:
Code: Select all
using channel 31
Using interface ppp0
Connect: ppp0 <-->
Overriding mtu 1500 to 1410
PPPoL2TP options: debugmask 0
Overriding mru 1500 to mtu value 1410
sent [LCP ConfReq id=0x1 <mru 1410> <asyncmap 0x0> <magic 0x6c9617f1>]
Terminating on signal 15
sent [LCP TermReq id=0x2 "User request"]
sent [LCP TermReq id=0x3 "User request"]
Connection terminated.
Modem hangup
Code: Select all
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <mru 1410> <asyncmap 0x0> <magic 0xf117567> <pcomp> <accomp>]
Terminating on signal 15
Modem hangup
Connection terminated.
Code: Select all
Jul 9 14:14:18 HOSTNAME xl2tpd[4268]: Connecting to host WORKIPADDRESS, port 1701
Jul 9 14:14:49 HOSTNAME xl2tpd[4268]: Maximum retries exceeded for tunnel 51194. Closing.
Jul 9 14:14:49 HOSTNAME xl2tpd[4268]: Connection 0 closed to WORKIPADDRESS, port 1701 (Timeout)
Jul 9 14:15:20 HOSTNAME xl2tpd[4268]: Will redial in 30 seconds
Jul 9 14:15:50 HOSTNAME xl2tpd[4268]: Connecting to host WORKIPADDRESS, port 1701
Jul 9 14:15:50 HOSTNAME xl2tpd[4268]: Connection established to WORKIPADDRESS, 1701. Local: 8406, Remote: 12 (ref=0/0).
Jul 9 14:15:50 HOSTNAME xl2tpd[4268]: Calling on tunnel 8406
Jul 9 14:15:50 HOSTNAME xl2tpd[4268]: Call established with WORKIPADDRESS, Local: 45061, Remote: 1610, Serial: 3 (ref=0/0)
Jul 9 14:15:50 HOSTNAME pppd[4415]: Warning: can't open options file /root/.ppprc: Permission denied
Jul 9 14:15:50 HOSTNAME pppd[4415]: pppd 2.4.5 started by USER, uid 0
Jul 9 14:15:50 HOSTNAME pppd[4415]: Using interface ppp0
Jul 9 14:15:50 HOSTNAME pppd[4415]: Connect: ppp0 <--> /dev/pts/1
Jul 9 14:15:50 HOSTNAME xl2tpd[4268]: control_finish: Connection closed to WORKIPADDRESS, serial 3 ()
Jul 9 14:15:50 HOSTNAME pppd[4415]: Modem hangup
Jul 9 14:15:50 HOSTNAME pppd[4415]: Connection terminated.
Jul 9 14:15:50 HOSTNAME xl2tpd[4268]: control_finish: Connection closed to WORKIPADDRESS, port 1701 (), Local: 8406, Remote: 12
Jul 9 14:15:51 HOSTNAME pppd[4415]: Exit.
Jul 9 14:16:20 HOSTNAME xl2tpd[4268]: Connecting to host WORKIPADDRESS, port 1701
Jul 9 14:16:51 HOSTNAME xl2tpd[4268]: Maximum retries exceeded for tunnel 45903. Closing.
Jul 9 14:16:51 HOSTNAME xl2tpd[4268]: Connection 0 closed to WORKIPADDRESS, port 1701 (Timeout)
Jul 9 14:17:22 HOSTNAME xl2tpd[4268]: Will redial in 30 seconds