Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability for networking to show all connections #133

Open
2 tasks done
warmfire540 opened this issue Feb 1, 2024 · 2 comments
Open
2 tasks done

Ability for networking to show all connections #133

warmfire540 opened this issue Feb 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@warmfire540
Copy link

Checklist:

  • I updated to the latest version available
  • I checked that my MQTT broker is otherwise working

Release with the issue:
v1.8.5

Last working release (if known):
not sure - only used this version

Hardware, Operating System, Python version:
RPi 3 Model B r1.2
py 2.7.16

Description of problem:

Run our report script 'genBugInfo' on your failing device and include the output here:

Networking in HA is not showing the vpn connection.  Here's what shows in HA:
networking: 
eth0:
  IP: 192.168.68.127
  mac: b8:27:eb:ce:1d:b2
  rx_data: 9
  tx_data: 1
wlan0:
  mac: b8:27:eb:9b:48:e7
  rx_data: 0
  tx_data: 0

Here is what shows in ifconfig on the device:
pi@poat-seedbox:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.68.131  netmask 255.255.255.0  broadcast 192.168.68.255
        ether dc:a6:32:31:9f:19  txqueuelen 1000  (Ethernet)
        RX packets 4417729  bytes 290564175 (277.1 MiB)
        RX errors 0  dropped 45  overruns 0  frame 0
        TX packets 3798498  bytes 129790726 (123.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 213  bytes 11801 (11.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 213  bytes 11801 (11.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

nordlynx: flags=81<UP,POINTOPOINT,RUNNING>  mtu 1420
        inet 10.5.0.2  netmask 255.255.255.255  destination 10.5.0.2
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 534  bytes 123388 (120.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 653  bytes 101744 (99.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

i'd like to see the nordlynx show up in the list

Python errors shown in the logs (if applicable):

no errors

Additional information:

@warmfire540 warmfire540 added the bug Something isn't working label Feb 1, 2024
@bsimmo
Copy link

bsimmo commented Feb 1, 2024

Here's talk on an update but doesn't involve other named connection, just the standard physical ones.
#79
There is a pull request for that too.

So if you can figure out a way to add VPN, it would need to be generic as your is just one naming type.

Also a way to split them up from physical?

Or even split them up in the attributes and to thier own sensors?

@warmfire540
Copy link
Author

warmfire540 commented Feb 1, 2024

@bsimmo can we remove | /bin/egrep " eth| wlan" from the getNetworkIFsUsingIP func? the rest of the func would need to stop assuming 2 entries and just pass the whole list back in the attributes

for me then all my interfaces are returned regardless of naming

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DORMANT group default qlen 1000
5: nordlynx: <POINTOPOINT,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000

playing w/ the code it now shows my 2 connected ones, I haven't played w/ just showing them all yet - maybe next.

networking: 
eth0:
  IP: 192.168.68.131
  mac: dc:a6:32:31:9f:19
  rx_data: 981420
  tx_data: 321488
nordlynx:
  IP: 10.5.0.2
  rx_data: 81495
  tx_data: 58768

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants