Modify

Opened 3 years ago

Closed 3 years ago

#19623 closed defect (fixed)

Procd interface hotplug doesn't detect when xl2tp client ppp interface comes up

Reported by: duvi Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

Trying in current trunk.

root@OpenWrt:~# cat /etc/config/network
...
config 'interface' 'vpn'
        option 'ifname'   'vma'
        option 'proto'    'none'
...
root@OpenWrt:~# cat /etc/hotplug.d/iface/99-vma
#!/bin/sh

[ "$ACTION" = ifup ] && {
  logger -t button-hotplug Device: $DEVICE / Action: $ACTION / Interface: $INTERFACE
}
root@OpenWrt:~# logread
...
Fri May  8 23:29:13 2015 user.notice button-hotplug: Device: pppoe-wan / Action: ifup / Interface: wan
Fri May  8 23:29:13 2015 user.notice ddns-scripts[1424]: myddns: PID '1424' started at 2015-05-08 23:29
Fri May  8 23:29:17 2015 daemon.debug xl2tpd[839]: Unable to deliver closing message for tunnel 50872. Destroying anyway.
Fri May  8 23:29:17 2015 daemon.info xl2tpd[839]: Will redial in 5 seconds
Fri May  8 23:29:22 2015 daemon.debug xl2tpd[839]: get_call: allocating new tunnel for host x.x.x.x, port 1701.
Fri May  8 23:29:22 2015 daemon.notice xl2tpd[839]: Connecting to host x.x.x.x, port 1701
Fri May  8 23:29:24 2015 daemon.notice xl2tpd[839]: Connection established to x.x.x.x, 1701.  Local: 5723, Remote: 6056 (ref=0/0).
Fri May  8 23:29:24 2015 daemon.notice xl2tpd[839]: Calling on tunnel 5723
Fri May  8 23:29:24 2015 daemon.notice xl2tpd[839]: Call established with x.x.x.x, Local: 7689, Remote: 20091, Serial: 1 (ref=0/0)
Fri May  8 23:29:24 2015 daemon.debug xl2tpd[839]: start_pppd: I'm running:
Fri May  8 23:29:24 2015 daemon.debug xl2tpd[839]: "/usr/sbin/pppd"
Fri May  8 23:29:24 2015 daemon.debug xl2tpd[839]: "passive"
Fri May  8 23:29:24 2015 daemon.debug xl2tpd[839]: "nodetach"
Fri May  8 23:29:24 2015 daemon.debug xl2tpd[839]: ":"
Fri May  8 23:29:24 2015 daemon.debug xl2tpd[839]: "refuse-pap"
Fri May  8 23:29:24 2015 daemon.debug xl2tpd[839]: "name"
Fri May  8 23:29:24 2015 daemon.debug xl2tpd[839]: "duvi"
Fri May  8 23:29:24 2015 daemon.debug xl2tpd[839]: "file"
Fri May  8 23:29:24 2015 daemon.debug xl2tpd[839]: "/etc/ppp/options.xl2tpd.client"
Fri May  8 23:29:24 2015 daemon.info pppd[1560]: Plugin pppol2tp.so loaded.
Fri May  8 23:29:24 2015 daemon.notice pppd[1560]: pppd 2.4.7 started by root, uid 0
Fri May  8 23:29:24 2015 daemon.info pppd[1560]: Using interface vma
Fri May  8 23:29:24 2015 daemon.warn pppd[1560]: Overriding mtu 1500 to 1410
Fri May  8 23:29:24 2015 daemon.debug pppd[1560]: PPPoL2TP options: debugmask 0
Fri May  8 23:29:24 2015 daemon.warn pppd[1560]: Overriding mru 1500 to mtu value 1410
Fri May  8 23:29:24 2015 daemon.notice pppd[1560]: local  IP address 192.168.200.100
Fri May  8 23:29:24 2015 daemon.notice pppd[1560]: remote IP address 192.168.200.1
######### important starts here #########
Fri May  8 23:29:24 2015 kern.info kernel: [   47.880000] vma: renamed from ppp1
Fri May  8 23:29:24 2015 daemon.notice netifd: Network device 'vma' link is up
Fri May  8 23:29:24 2015 daemon.notice netifd: Interface 'vpn' has link connectivity
######### important ends here #########
Fri May  8 23:29:31 2015 kern.notice kernel: [   54.640000] random: nonblocking pool is initialized
Fri May  8 23:31:13 2015 daemon.info pppd[1056]: System time change detected.
Fri May  8 23:31:30 2015 authpriv.notice dropbear[1614]: Password auth succeeded for 'root' from 192.168.1.83:49873

also filtering hotplug from logread

root@OpenWrt:~# logread | grep hotplug
Fri May  8 23:29:09 2015 user.notice button-hotplug: Device: br-lan / Action: ifup / Interface: lan
Fri May  8 23:29:11 2015 user.notice button-hotplug: Device: lo / Action: ifup / Interface: loopback
Fri May  8 23:29:13 2015 user.notice button-hotplug: Device: pppoe-wan / Action: ifup / Interface: wan
root@OpenWrt:~#

So basically netifd logs that it sees device 'vma' / interface 'vpn' come up, but it's not seen by hotplug.

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by duvi

Seems to be working after recent xl2tpd commits if l2tp is configured via luci.

comment:2 Changed 3 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.