aparcar / openwrt

Staging tree of Paul Spooren
Other
8 stars 1 forks source link

FS#917 - Tunnels not vavalaiable in Realtime Graphs #1236

Closed aparcar closed 6 years ago

aparcar commented 7 years ago

lleachii:

In OpenWRT, IPENCAP tunnels appeared in Realtime Graphs > Traffic of the LuCI web application.

After upgrading to LEDE 17, these interfaces no longer appear in the Realtime Graphs menu.

aparcar commented 7 years ago

lleachii:

I should note, while the interface is not listed, I can browse to it by typing:

http:///cgi-bin/luci/admin/status/realtime/bandwidth?dev=

aparcar commented 7 years ago

jow-:

Please provide the output of:

lua -lluci.jsonc -lnixio -e 'print(luci.jsonc.stringify(nixio.getifaddrs(), true))'

aparcar commented 7 years ago

lleachii:

root@router:~# lua -lluci.jsonc -lnixio -e 'print(luci.jsonc.stringify(nixio.ge tifaddrs(), true))' [ { "data": { "rx_bytes": 9845938, "tx_bytes": 9845938, "tx_errors": 0, "rx_errors": 0, "tx_packets": 158686, "rx_packets": 158686, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": false, "promisc": false, "up": true, "loopback": true, "noarp": false, "multicast": false, "pointtopoint": false }, "addr": "00:00:00:00:00:00", "name": "lo", "dstaddr": "00:00:00:00:00:00", "family": "packet", "hatype": 772, "broadaddr": "00:00:00:00:00:00", "ifindex": 1 }, { "data": { "rx_bytes": 1355367667, "tx_bytes": 392420822, "tx_errors": 0, "rx_errors": 0, "tx_packets": 317008354, "rx_packets": 304935158, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "eth0", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 2 }, { "data": { "rx_bytes": 0, "tx_bytes": 0, "tx_errors": 0, "rx_errors": 0, "tx_packets": 0, "rx_packets": 0, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": false, "promisc": false, "up": false, "loopback": false, "noarp": true, "multicast": false, "pointtopoint": false }, "addr": "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00", "name": "ip6tnl0", "dstaddr": "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00", "family": "packet", "hatype": 769, "broadaddr": "00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00", "ifindex": 3 }, { "data": { "rx_bytes": 106309256, "tx_bytes": 95877839, "tx_errors": 0, "rx_errors": 0, "tx_packets": 284160, "rx_packets": 364167, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": false, "promisc": false, "up": true, "loopback": false, "noarp": true, "multicast": true, "pointtopoint": false }, "addr": "00:00:00:00", "name": "tunl0", "dstaddr": "00:00:00:00", "family": "packet", "hatype": 768, "broadaddr": "00:00:00:00", "ifindex": 4 }, { "data": { "rx_bytes": 0, "tx_bytes": 0, "tx_errors": 0, "rx_errors": 0, "tx_packets": 0, "rx_packets": 0, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": false, "promisc": false, "up": false, "loopback": false, "noarp": true, "multicast": false, "pointtopoint": false }, "addr": "00:00:00:00", "name": "sit0", "dstaddr": "00:00:00:00", "family": "packet", "hatype": 776, "broadaddr": "00:00:00:00", "ifindex": 5 }, { "data": { "rx_bytes": 131798177, "tx_bytes": 91692936, "tx_errors": 0, "rx_errors": 0, "tx_packets": 390292, "rx_packets": 418142, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-amprnet", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 10 }, { "data": { "rx_bytes": 131798177, "tx_bytes": 91692936, "tx_errors": 0, "rx_errors": 0, "tx_packets": 390292, "rx_packets": 418142, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "eth0.4", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 11 }, { "data": { "rx_bytes": 0, "tx_bytes": 342, "tx_errors": 0, "rx_errors": 0, "tx_packets": 1, "rx_packets": 0, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-guest_net", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 12 }, { "data": { "rx_bytes": 0, "tx_bytes": 342, "tx_errors": 0, "rx_errors": 0, "tx_packets": 1, "rx_packets": 0, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "eth0.6", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 13 }, { "data": { "rx_bytes": 1818197355, "tx_bytes": 681356111, "tx_errors": 0, "rx_errors": 0, "tx_packets": 53579399, "rx_packets": 74676818, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-lan", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 14 }, { "data": { "rx_bytes": 2930174045, "tx_bytes": 951892741, "tx_errors": 0, "rx_errors": 0, "tx_packets": 86257362, "rx_packets": 95472969, "multicast": 191906, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "eth0.1", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 15 }, { "data": { "rx_bytes": 3767762000, "tx_bytes": 2915477634, "tx_errors": 0, "rx_errors": 0, "tx_packets": 83687310, "rx_packets": 71884371, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-network2", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 16 }, { "data": { "rx_bytes": 3767762118, "tx_bytes": 2914046474, "tx_errors": 0, "rx_errors": 0, "tx_packets": 83670670, "rx_packets": 71884373, "multicast": 11130, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "eth0.3", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 17 }, { "data": { "rx_bytes": 152686554, "tx_bytes": 264023047, "tx_errors": 0, "rx_errors": 0, "tx_packets": 413579, "rx_packets": 437062, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "eth0.5", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 18 }, { "data": { "rx_bytes": 1768997664, "tx_bytes": 3492665986, "tx_errors": 0, "rx_errors": 0, "tx_packets": 146276444, "rx_packets": 136722500, "multicast": 5568, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "eth0.2", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 19 }, { "data": { "rx_bytes": 0, "tx_bytes": 1314314, "tx_errors": 0, "rx_errors": 0, "tx_packets": 12906, "rx_packets": 0, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "wlan1", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 20 }, { "data": { "rx_bytes": 790890205, "tx_bytes": 137081312, "tx_errors": 0, "rx_errors": 0, "tx_packets": 809459, "rx_packets": 1054451, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": false, "promisc": false, "up": true, "loopback": false, "noarp": true, "multicast": false, "pointtopoint": true }, "addr": "", "name": "6in4-henet", "dstaddr": "", "family": "packet", "hatype": 776, "broadaddr": "", "ifindex": 21 }, { "data": { "rx_bytes": 272974662, "tx_bytes": 1801830813, "tx_errors": 0, "rx_errors": 0, "tx_packets": 20639446, "rx_packets": 32703475, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "wlan0", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 22 }, { "data": { "rx_bytes": 3678868392, "tx_bytes": 3678868392, "tx_errors": 0, "rx_errors": 0, "tx_packets": 136718568, "rx_packets": 136718568, "multicast": 0, "collisions": 0, "rx_dropped": 0, "tx_dropped": 0 }, "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": true, "multicast": false, "pointtopoint": false }, "addr": "", "name": "ifb0", "dstaddr": "ff:ff:ff:ff:ff:ff", "family": "packet", "hatype": 1, "broadaddr": "ff:ff:ff:ff:ff:ff", "ifindex": 23 }, { "netmask": "255.0.0.0", "data": [ ], "flags": { "broadcast": false, "promisc": false, "up": true, "loopback": true, "noarp": false, "multicast": false, "pointtopoint": false }, "addr": "127.0.0.1", "prefix": 8, "family": "inet", "dstaddr": "127.0.0.1", "broadaddr": "127.0.0.1", "name": "lo" }, { "netmask": "255.255.255.255", "data": [ ], "flags": { "broadcast": false, "promisc": false, "up": true, "loopback": false, "noarp": true, "multicast": true, "pointtopoint": false }, "addr": "44.128.22.254", "prefix": 32, "family": "inet", "dstaddr": "44.128.22.254", "broadaddr": "44.128.22.254", "name": "tunl0" }, { "netmask": "255.255.255.0", "data": [ ], "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "prefix": 24, "family": "inet", "dstaddr": "", "broadaddr": "", "name": "br-amprnet" }, { "netmask": "255.255.255.248", "data": [ ], "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "prefix": 29, "family": "inet", "dstaddr": "", "broadaddr": "", "name": "br-guest_net" }, { "netmask": "255.255.255.0", "data": [ ], "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "prefix": 24, "family": "inet", "dstaddr": "", "broadaddr": "", "name": "br-lan" }, { "netmask": "255.255.255.248", "data": [ ], "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "prefix": 29, "family": "inet", "dstaddr": "", "broadaddr": "", "name": "br-network2" }, { "netmask": "255.255.255.0", "data": [ ], "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "prefix": 24, "family": "inet", "dstaddr": "", "broadaddr": "", "name": "eth0.5" }, { "netmask": "255.255.255.0", "data": [ ], "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "prefix": 24, "family": "inet", "dstaddr": "", "broadaddr": "", "name": "eth0.2" }, { "flags": { "broadcast": false, "promisc": false, "up": true, "loopback": true, "noarp": false, "multicast": false, "pointtopoint": false }, "addr": "::1", "name": "lo", "family": "inet6", "prefix": 128, "data": [ ], "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "eth0", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-amprnet", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-guest_net", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-guest_net", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-lan", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-lan", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-network2", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "br-network2", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "eth0.5", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "eth0.2", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "wlan1", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": false, "promisc": false, "up": true, "loopback": false, "noarp": true, "multicast": false, "pointtopoint": true }, "addr": "", "name": "6in4-henet", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": false, "promisc": false, "up": true, "loopback": false, "noarp": true, "multicast": false, "pointtopoint": true }, "addr": "", "name": "6in4-henet", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": false, "multicast": true, "pointtopoint": false }, "addr": "", "name": "wlan0", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" }, { "flags": { "broadcast": true, "promisc": false, "up": true, "loopback": false, "noarp": true, "multicast": false, "pointtopoint": false }, "addr": "", "name": "ifb0", "family": "inet6", "prefix": 64, "data": [ ], "netmask": "ffff:ffff:ffff:ffff::" } ]

aparcar commented 7 years ago

jow-:

I assume the missing devices do not appear in the dump above? Can you check if they're present in ls /sys/class/net/ ?

aparcar commented 7 years ago

lleachii:

Jo-Philipp,

The missing device does appear, it is tunl0, it's the device with a 44.128.0.0/16 address.

Since I'm not sure why you want the output, it's difficult to assist.

root@router:~# ls /sys/class/net/ 6in4-henet br-network2 eth0.3 ifb0 tunl0 br-amprnet eth0 eth0.4 ip6tnl0 wlan0 br-guest_net eth0.1 eth0.5 lo wlan1 br-lan eth0.2 eth0.6 sit0

aparcar commented 6 years ago

jow-:

Fixed with https://github.com/openwrt/luci/commit/4201282559d85988990c8f48f4075bed5f785c2f

aparcar commented 6 years ago

lleachii:

IPENCAP/kmod-ipip tunnel does not appear OpenWrt 18.06-SNAPSHOT r6917-8948a78.