[LEDE-DEV] /lib/functions/network.sh & ip6ifaceid

e9hack e9hack at gmail.com
Thu Jun 8 09:36:18 PDT 2017


Am 07.06.2017 um 19:33 schrieb Eric Masson:
>> root at rtrwrtfenint:/tmp#  . /lib/functions/network.sh; network_get_ipaddrs_all ipaddrs lan ; echo $ipaddrs
>> 192.168.85.15 fd75:43df:37f2::1

This function or the way how it is used by /etc/init.d/dropbear has more issues:

root at WLAN-DSL8:~# . /lib/functions/network.sh; network_get_ipaddrs_all ipaddrs wan ; echo $ipaddrs
217.xxx.xxx.xxx fe80::aaaa:aaaa:aaaa:aaaa

root at WLAN-DSL8:~# ifconfig pppoe-wan
pppoe-wan Link encap:Point-to-Point Protocol
          inet addr:217.xxx.xxx.xxx  P-t-P:87.yyy.yyy.yyy  Mask:255.255.255.255
          inet6 addr: 2003:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb/64 Scope:Global
          inet6 addr: fe80::aaaa:aaaa:aaaa:aaaa/10 Scope:Link
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:7693 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4597 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:7357150 (7.0 MiB)  TX bytes:1929354 (1.8 MiB)

root at WLAN-DSL8:~# ps -ww
23253 root      1160 S    /usr/sbin/dropbear -F -P /var/run/dropbear.2.pid -g -p 217.xxx.xxx.xxx:2022 -p
fe80::aaaa:aaaa:aaaa:aaaa:aaaa2 -K 300

Dropbear doesn't listen on the global ipv6 address 2003:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb:bbbb.

Regards,
Hartmut



More information about the Lede-dev mailing list