[OpenWrt-Devel] "ubus call network.interface dump" doesnt report the ip of tun0 interface, despite being there. Bug?

Ronaldo Afonso ronaldo at ronaldoafonso.com.br
Wed Nov 16 06:55:59 EST 2016


  Hi Alberto,

  I have the same issue and I'm using OpenVPN ... take a look:

root at oi-eng-03:~# ip addr show dev tun0
5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel
state UNKNOWN group default qlen 100
    link/none
    inet 10.100.15.198 peer 10.100.15.199/32 scope global tun0
       valid_lft forever preferred_lft forever
root at oi-eng-03:~#
root at oi-eng-03:~#
root at oi-eng-03:~# uci show network.vpn
network.vpn=interface
network.vpn.ifname='tun0'
network.vpn.proto='none'
root at oi-eng-03:~#
root at oi-eng-03:~#
root at oi-eng-03:~# ubus call network.interface.vpn status
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 191392,
"l3_device": "tun0",
"proto": "none",
"device": "tun0",
"metric": 0,
"delegation": true,
"ipv4-address": [
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
]
},
"data": {
}
}


2016-11-15 15:17 GMT-02:00 alberto fuentes <pajaro at gmail.com>:

> Should i open a bug?
>
> tun0 interface created and ip assigned by openvpn
>
> root at router:~# ifconfig tun0
> tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
>
>           inet addr:10.19.3.33  P-t-P:10.19.3.1  Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:7 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:492 (492.0 B)  TX bytes:412 (412.0 B)
>
> root at router:~# /etc/init.d/dropbear start
> interface tun0 has no physdev or physdev has no suitable ip
>
> root at router:~# ubus call network.interface dump
> [...]
>         {
>             "interface": "tun0",
>             "up": true,
>             "pending": false,
>             "available": true,
>             "autostart": true,
>             "dynamic": false,
>             "uptime": 20815,
>             "l3_device": "tun0",
>             "proto": "none",
>             "device": "tun0",
>             "metric": 0,
>             "delegation": true,
>             "ipv4-address": [
>
>             ],
>             "ipv6-address": [
>
>             ],
>             "ipv6-prefix": [
>
>             ],
>             "ipv6-prefix-assignment": [
>
>             ],
>             "route": [
>
>             ],
>             "dns-server": [
>
>             ],
>             "dns-search": [
>
>             ],
>             "inactive": {
>                 "ipv4-address": [
>
>                 ],
>                 "ipv6-address": [
>
>                 ],
>                 "route": [
>
>                 ],
>                 "dns-server": [
>
>                 ],
>                 "dns-search": [
>
>                 ]
>             },
>             "data": {
>
>             }
>         },
> [...]
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>


-- 
Ronaldo Afonso
11 9 5252 0484
www.ronaldoafonso.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20161116/9df9f56d/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list