#Running OTBR on (non-HA) Raspberry Pi / Ubuntu with ZBT-2 - rest api only binds to localhost

1 messages · Page 1 of 1 (latest)

median crow
#

I'm banging my head against the wall. I got a ZBT2.

I flashed it with openthread.

I installed native (from source) OTBR and built it using:

REST_API=1 INFRA_IF_NAME=eth0 ./script/setup

eth0 is my ethernet, and it's got ipv6 enabled

This creates the rest_api, but it's bound only to 127.0.0.1:8081 and not to 0.0.0.0. The OTBR is running, it doesn't abort, I just can't access it from Home Asssistant because the connection gets refused.

99% of the documentation is for Home Assistant with the USB plugged directly in; I run in a Hyper-V and can't do that.

I can't find any config file that appears to set bindings.

Anyone know where to look? Everything I see indicates with the INFRA_IF_NAME it should just be magic.

Is there a place to set bindings, and/or check why it's not binding properly?

The log below shows it starting up to the point it binds to localhost. If index 2 is eth0. I just don't see it doing anything wrong, other than the result -- it's as though there's a config file telling it to bind there (too long to post, I'll try toi put it in a reply)

Any suggestions?

#
systemd[1]: Started otbr-agent.service - OpenThread Border Router Agent.
otbr-agent: [NOTE]-AGENT---: Backbone interface: eth0
otbr-agent[18745]: [NOTE]-AGENT---: Running 0.3.0-ccb0e14
zwave otbr-agent[18745]: [NOTE]-AGENT---: Thread version: 1.4.0
otbr-agent[18745]: [NOTE]-AGENT---: Thread interface: wpan0
otbr-agent[18745]: [NOTE]-AGENT---: Radio URL: spinel+hdlc+uart:///dev/ttyACM0
otbr-agent[18745]: [NOTE]-AGENT---: Radio URL: trel://eth0
otbr-agent[18745]: [NOTE]-ILS-----: Infra link selected: eth0
otbr-agent[18745]: [INFO]-RCP_HOS-: OpenThread log level changed to 4
otbr-agent[18745]: 49d.20:01:00.791 [I] P-SpinelDrive-: co-processor reset: RESET_POWER_ON
otbr-agent[18745]: 49d.20:01:00.791 [C] P-SpinelDrive-: Software reset co-processor successfully
otbr-agent[18745]: 49d.20:01:00.806 [I] P-Netif-------: Sent request#1 to set addr_gen_mode to 1
otbr-agent[18745]: 49d.20:01:00.806 [I] P-Resolver----: Got nameserver #0: 127.0.0.53
otbr-agent[18745]: 00:00:00.012 [I] CslTxScheduler: Set frame request ahead: 7605 usec
otbr-agent[18745]: 00:00:00.013 [I] ChildSupervsn-: Timeout: 0 -> 190
otbr-agent[18745]: 00:00:00.016 [I] TrelInterface-: Enabled interface, local port:48523
otbr-agent[18745]: 00:00:00.017 [I] InfraIf-------: Init infra netif 2
otbr-agent[18745]: 00:00:00.017 [I] Settings------: Read BrUlaPrefix fd47:e451:ce2d::/48
otbr-agent[18745]: 00:00:00.018 [N] BorderRouting-: BR ULA prefix: fd47:e451:ce2d::/48 (loaded)
otbr-agent[18745]: 00:00:00.018 [I] BorderRouting-: Generated local OMR prefix: fd47:e451:ce2d:1::/64
otbr-agent[18745]: 00:00:00.018 [I] BorderRouting-: Generated local NAT64 prefix: fd47:e451:ce2d:2:0:0::/96
otbr-agent[18745]: 00:00:00.018 [N] BorderRouting-: Local on-link prefix: fdde:ad00:beef:cafe::/64
otbr-agent[18745]: 00:00:00.018 [I] InfraIf-------: State changed: NOT RUNNING -> RUNNING
otbr-agent[18745]: 00:00:00.018 [I] P-MdnsSocket--: Successfully opened IPv4 socket
````  (cont'd)
#
otbr-agent[18745]: 00:00:00.020 [I] P-MdnsSocket--: Enabled
otbr-agent[18745]: 00:00:00.020 [I] MulticastDns--: Auto-enabling on infra-if-index 2
otbr-agent[18745]: 00:00:00.020 [I] Settings------: Read BorderAgentId {id:8a41d423710e0a808b699ebc5428e6f4}
otbr-agent[18745]: 00:00:00.020 [I] BorderRouting-: Enabling
otbr-agent[18745]: 00:00:00.020 [I] Nat64---------: IPv4 CIDR for NAT64: 192.168.255.0/24 (254 addresses)
otbr-agent[18745]: [INFO]-HELPER--: Set state callback: OK
otbr-agent[18745]: 00:00:00.021 [I] Nat64---------: State: Disabled -> NotRunning
otbr-agent[18745]: 00:00:00.021 [I] BbrLocal------: Add Domain Prefix: ::/0, NotFound
otbr-agent[18745]: 00:00:00.021 [I] BbrLocal------: Add BBR Service: seqno (86), delay (5s), timeout (3600s), InvalidState
otbr-agent[18745]: [WARN]-UTILS---: /home/ferguson/ot-br-posix/src/rest/network_diag_handler.cpp:1300 lacking some attributes for deviceId f2c56330ffb38a57
otbr-agent[18745]: [WARN]-UTILS---: /home/ferguson/ot-br-posix/src/rest/network_diag_handler.cpp:1244 cannot get LeaderData while detached
otbr-agent[18745]: [WARN]-UTILS---: /home/ferguson/ot-br-posix/src/rest/rest_devices_coll.cpp:232 - AddItem - f2c56330ffb38a57
otbr-agent[18745]: [INFO]-REST----: RestWebServer listening on 127.0.0.1:8081