[Swan] xl2tpd up/down

John Crisp jcrisp at safeandsoundit.co.uk
Tue Mar 31 19:42:22 EEST 2015


I can see that when my connection comes up, options.xl2tpd is read and
pppd runs ip-up.local

What I can't see is what happens in reverse.

I can see the connection timing out and dying but ip-down does not seem
to run. Just seems everything dies quietly !

I'd like to be able to run some stuff when the connection comes down and
not sure how to easily detect that.

I've clearly missed something fundamental here, but I'm blowed if I can
see what. Any advice ?


B. Rgds
John

From /var/log/messages

Mar 31 18:09:46 test xl2tpd[8379]: Connection established to 1.2.3.4,
35221.  Local: 29331, Remote: 38388 (ref=0/0).  LNS session is 'default'

Mar 31 18:09:46 test xl2tpd[8379]: Call established with 1.2.3.4, Local:
30687, Remote: 23403, Serial: 167330395

Mar 31 18:09:46 test pppd[18937]: pppd 2.4.5 started by root, uid 0
Mar 31 18:09:46 test pppd[18937]: Using interface ppp0
Mar 31 18:09:46 test pppd[18937]: Connect: ppp0 <--> /dev/pts/1
Mar 31 18:09:46 test pppd[18937]: user roadwarrior logged in on tty
pts/1 intf ppp0
Mar 31 18:09:46 test pppd[18937]: PAP peer authentication succeeded for
roadwarrior
Mar 31 18:09:46 test pppd[18937]: Deflate (15) compression enabled
Mar 31 18:09:46 test pppd[18937]: found interface eth1 for proxy arp
Mar 31 18:09:46 test pppd[18937]: local  IP address 192.168.97.1
Mar 31 18:09:46 test pppd[18937]: remote IP address 192.168.97.100

(debugging line - ip-up running)
Mar 31 18:09:46 test ip-up: param xl2tpd newip 192.168.97.1 extip
1.2.3.4 locip 192.168.97.1

(debugging line - ip-up running)
Mar 31 18:09:46 test ip-up: xl2tpd ppp0 /dev/pts/1 150 192.168.97.1
192.168.97.100 xl2tpd


(Connection closes but ip-down does not seem to run)
Mar 31 18:10:51 test xl2tpd[8379]: Maximum retries exceeded for tunnel
29331.  Closing.
Mar 31 18:10:51 test xl2tpd[8379]: Connection 38388 closed to
176.83.34.170, port 35221 (Timeout)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20150331/f2da0118/attachment.sig>


More information about the Swan mailing list