#22976: busybox: ntpd uses wrong IPv6 address in reply to query
------------------------+---------------------------------------
 Reporter:  hellfire@…  |      Owner:  developers
     Type:  defect      |     Status:  new
 Priority:  normal      |  Milestone:  Designated Driver (Trunk)
Component:  packages    |    Version:  Trunk
 Keywords:              |
------------------------+---------------------------------------
 I have a couple of routers that I'm using in a mesh setup with BMX6 and an
 OpenVPN tunnel over the top, the routers have no RTC and rely on ntp to
 sync the time after BMX6 is initialized but before the VPN is set up.

 Router 1 is configured with three IPv6 addresses.  The link local fe80::
 address, the fd66:66:66:: BMX6 address, and a private (ie.) fd2e::/64
 address.

 Router 2 only has two, the link local, and the BMX6 fd66:66:66:: address.

 Private address fd2e:: is advertised out to the mesh with BMX6.  Routers
 have three services that run directly on the mesh interface, BMX6, NTP and
 OpenVPN.

 Router 2 boots up, ifups wlan0 adhoc onto the mesh network, BMX6 allocates
 an address and gets the advertised network from Router 1.  Router 2 then
 sends an NTP request off to the advertised network from Router 1 (to
 fd2e:: address).  Router 1 (running busybox ntpd) replies with the source
 address set to fd66:66:66:: address, and router 2 drops it because it's
 coming back from the wrong address.

 I'm assuming that busybox ntpd on router 1 looks up the source address
 from the interface based on the route to router 2 is the fd66:66:66::
 address and uses that, but it's not the correct source address.

 ISC ntpd as a replacement responds from the correct IP as expected, and I
 am using it in place of busybox, at a hit of 3 times the memory usage.

 If required, I can recreate the conditions of this test with tcpdump
 outputs.

--
Ticket URL: <https://dev.openwrt.org/ticket/22976>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
openwrt-tickets@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to