Bug #10629
closedminiupnp failed to migrate interface
0%
Description
I recently went through a backup/restore to a new device (newer hardware, more interfaces, etc). My design, for conversation purposes, is a router on a stick. Originally all VLANs were attached to a LAGG, including the WAN interface (VLAN 5). After getting the new device up, I moved the WAN interface to a dedicated port, igb0. It seems that the change in the GUI was fine for miniupnp (as it only references the interface "WAN"), but in the configuration file (and the logs) it did not update properly. This was spamming in the logs:
Jun 3 10:46:40 miniupnpd 16528 Failed to get ip address for interface lagg0.5
Jun 3 10:46:40 miniupnpd 16528 ioctl(s, SIOCGIFADDR, ...): Can't assign requested address
Jun 3 10:31:40 miniupnpd 16528 Failed to get ip address for interface lagg0.5
Jun 3 10:31:40 miniupnpd 16528 ioctl(s, SIOCGIFADDR, ...): Can't assign requested address
Jun 3 10:16:40 miniupnpd 16528 Failed to get ip address for interface lagg0.5
Jun 3 10:16:40 miniupnpd 16528 ioctl(s, SIOCGIFADDR, ...): Can't assign requested address
Jun 3 10:01:40 miniupnpd 16528 Failed to get ip address for interface lagg0.5
In order to force it over, I had to assign the interface to something else, then assign it back.
I'm not really sure what I could have done different, but I did notice that miniupnpd.conf references physical interfaces, not the logical ones, which may have been the issue, as WAN was always the External Interface, but not always ext_ifname.
Before:
ext_ifname=lagg0.5
listening_ip=lagg0.100
listening_ip=lagg0.200
listening_ip=lagg0.600
listening_ip=lagg0.300
After:
ext_ifname=igb0
listening_ip=lagg0.100
listening_ip=lagg0.200
listening_ip=lagg0.600
listening_ip=lagg0.300