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

Unable to detect certain valid network interfaces in UI #1096

Closed
oznu opened this issue Feb 23, 2021 · 4 comments
Closed

Unable to detect certain valid network interfaces in UI #1096

oznu opened this issue Feb 23, 2021 · 4 comments
Labels

Comments

@oznu
Copy link
Member

oznu commented Feb 23, 2021

From homebridge/homebridge#2823 by @timdream

Describe The Bug:

I am setting a warning on tap0 being disconnected even though everything works after updating the configuration file.

image

Instead of running an RPi locally, I run my Homebridge in a docker container (w/ host networking) on a remote VPS, and OpenVPN back to the network. OpenVPN in tap mode is a layer 2 connection so there should be no difference on layer 3. Indeed everything is working. For the latest version yesterday I had to tweak the config with these:

"bridge" {
        "bind": [
            "tap0"
        ],
        "advertiser": "ciao"
}

but after that Homebridge works.

To Reproduce:

  1. Set up a VPS
  2. Set up a tap VPN connection back to home network
  3. Run oznu/homebridge docker image on VPS, with host network.

Expected behavior:

  1. Homebridge should work without any specific bridge.bind config.
  2. tap0 should show up on the interface list in the settings UI.
  3. It should not be reported as disconnected when I set it manually in the config file.

Logs:

Sorry, nothing really relevant in the homebridge log. But here is the output of docker exec -it homebridge ifconfig which shows tap0 in the list.

ifconfig log
br-1f1c3deb2144 Link encap:Ethernet  HWaddr 02:42:45:4F:9E:1C  
          inet addr:172.19.0.1  Bcast:172.19.255.255  Mask:255.255.0.0
          inet6 addr: fe80::42:45ff:fe4f:9e1c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3949 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6132 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:194927 (190.3 KiB)  TX bytes:610723 (596.4 KiB)

br-238460e0df82 Link encap:Ethernet  HWaddr 02:42:BF:27:3E:23  
          inet addr:172.26.0.1  Bcast:172.26.255.255  Mask:255.255.0.0
          inet6 addr: fe80::42:bfff:fe27:3e23/64 Scope:Link
          <omitted>

br-8e9636623717 Link encap:Ethernet  HWaddr 02:42:27:1D:BE:D2  
          inet addr:10.1.6.1  Bcast:10.1.6.255  Mask:255.255.255.0
          inet6 addr: fe80::42:27ff:fe1d:bed2/64 Scope:Link
          <omitted>

br-9c012951c8cf Link encap:Ethernet  HWaddr 02:42:48:71:4C:C9  
          inet addr:10.1.4.1  Bcast:10.1.4.255  Mask:255.255.255.0
          inet6 addr: fe80::42:48ff:fe71:4cc9/64 Scope:Link
          <omitted>

br-a5cba590e84f Link encap:Ethernet  HWaddr 02:42:CC:15:55:BB  
          inet addr:172.20.0.1  Bcast:172.20.255.255  Mask:255.255.0.0
          inet6 addr: fe80::42:ccff:fe15:55bb/64 Scope:Link
          <omitted>

br-a8aa5a8cdf01 Link encap:Ethernet  HWaddr 02:42:CC:28:1D:50  
          inet addr:172.18.0.1  Bcast:172.18.255.255  Mask:255.255.0.0
          inet6 addr: fe80::42:ccff:fe28:1d50/64 Scope:Link
          <omitted>

br-cc3aee1fae88 Link encap:Ethernet  HWaddr 02:42:13:28:C1:E1  
          inet addr:10.1.5.1  Bcast:10.1.5.255  Mask:255.255.255.0
          inet6 addr: fe80::42:13ff:fe28:c1e1/64 Scope:Link
          <omitted>

docker0   Link encap:Ethernet  HWaddr 02:42:36:DF:F7:37  
          inet addr:172.17.0.1  Bcast:172.17.255.255  Mask:255.255.0.0
          <omitted>

eth0      Link encap:Ethernet  HWaddr 04:01:6E:8E:E4:01  
          inet addr:<retracted>  Bcast:138.68.63.255  Mask:255.255.240.0
          inet6 addr: <retracted>/64 Scope:Global
          inet6 addr: fe80::601:6eff:fe8e:e401/64 Scope:Link
          <omitted>

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          <omitted>

tap0      Link encap:Ethernet  HWaddr 3E:73:20:C4:62:D5  
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::3c73:20ff:fec4:62d5/64 Scope:Link
          <omitted>

veth00f2fde Link encap:Ethernet  HWaddr 46:41:18:BA:60:C1  
          inet6 addr: fe80::4441:18ff:feba:60c1/64 Scope:Link
          <omitted>

veth3386c7a Link encap:Ethernet  HWaddr 4E:6D:85:69:2A:82  
          inet6 addr: fe80::4c6d:85ff:fe69:2a82/64 Scope:Link
          <omitted>

veth34fb2af Link encap:Ethernet  HWaddr 72:00:6A:BC:9A:6B  
          inet6 addr: fe80::7000:6aff:febc:9a6b/64 Scope:Link
          <omitted>

veth3bc738f Link encap:Ethernet  HWaddr 0A:60:30:B1:16:2F  
          inet6 addr: fe80::860:30ff:feb1:162f/64 Scope:Link
          <omitted>

veth4612441 Link encap:Ethernet  HWaddr 22:CF:31:36:81:14  
          inet6 addr: fe80::20cf:31ff:fe36:8114/64 Scope:Link
          <omitted>

veth4942623 Link encap:Ethernet  HWaddr 3E:26:A1:1A:6D:81  
          inet6 addr: fe80::3c26:a1ff:fe1a:6d81/64 Scope:Link
          <omitted>

veth73e9d17 Link encap:Ethernet  HWaddr 56:76:85:6C:66:68  
          inet6 addr: fe80::5476:85ff:fe6c:6668/64 Scope:Link
          <omitted>

veth89890f6 Link encap:Ethernet  HWaddr BE:E6:5E:9A:AF:5C  
          inet6 addr: fe80::bce6:5eff:fe9a:af5c/64 Scope:Link
          <omitted>

veth9d6425f Link encap:Ethernet  HWaddr 4A:9F:6A:28:45:D8  
          inet6 addr: fe80::489f:6aff:fe28:45d8/64 Scope:Link
          <omitted>

vethab2d723 Link encap:Ethernet  HWaddr 82:FB:50:51:8C:52  
          inet6 addr: fe80::80fb:50ff:fe51:8c52/64 Scope:Link
          <omitted>

vethc0e921b Link encap:Ethernet  HWaddr B6:AA:00:5F:7A:C9  
          inet6 addr: fe80::b4aa:ff:fe5f:7ac9/64 Scope:Link
          <omitted>

vethcfe5a80 Link encap:Ethernet  HWaddr F2:08:63:55:29:36  
          inet6 addr: fe80::f008:63ff:fe55:2936/64 Scope:Link
          <omitted>

vethd2c875e Link encap:Ethernet  HWaddr C2:7D:AB:83:26:3A  
          inet6 addr: fe80::c07d:abff:fe83:263a/64 Scope:Link
          <omitted>

vethe1ce126 Link encap:Ethernet  HWaddr 6E:6A:5A:E8:71:38  
          inet6 addr: fe80::6c6a:5aff:fee8:7138/64 Scope:Link
          <omitted>

vethf58269c Link encap:Ethernet  HWaddr 6E:6D:18:F1:C2:AF  
          inet6 addr: fe80::6c6d:18ff:fef1:c2af/64 Scope:Link
          <omitted>

Homebridge Config:

See bridge setting above.

Screenshots:

See screenshot above.

Environment:

[2/20/2021, 10:51:25 AM] [HB Supervisor] OS: Linux 5.4.0-65-generic x64
[2/20/2021, 10:51:25 AM] [HB Supervisor] Node.js v14.15.5 /usr/local/bin/node
[2/20/2021, 10:51:25 AM] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[2/20/2021, 10:51:25 AM] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[2/20/2021, 10:51:29 AM] [Homebridge UI] Homebridge Config UI X v4.39.0 is listening on :: port 8081
[2/20/2021, 10:51:29 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /homebridge/node_modules
[2/20/2021, 10:51:29 AM] [HB Supervisor] Started Homebridge v1.3.0 with PID: 1344
  • Node.js Version: v14.15.5
  • NPM Version: v6.14.11
  • Homebridge Version: v1.3.0
  • Operating System: Docker/Alpine Linux (3.12.3)
  • Process Supervisor: Docker
@oznu oznu added the bug label Feb 23, 2021
@oznu
Copy link
Member Author

oznu commented Feb 23, 2021

Hi @timdream, I've moved your issue to the Homebridge UI repo as that is where the issue is.

@oznu
Copy link
Member Author

oznu commented Feb 24, 2021

The 4.39.1-test.6 test should filter out less network interfaces. Can you check to see if your tap0 interface is now shown?

https://github.com/oznu/homebridge-config-ui-x/wiki/How-To-Test-Upcoming-Changes

@timdream
Copy link

image

Works for me, thanks for the quick turnaround!

@oznu
Copy link
Member Author

oznu commented Feb 25, 2021

Thanks for confirming!

@oznu oznu closed this as completed Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants