Skip to content

Border Agent / Firewall Ports #11093

Answered by abtink
milas asked this question in Q&A
Dec 27, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

In code, this is controlled by OPENTHREAD_CONFIG_BORDER_AGENT_UDP_PORT, which is a compile-time config defaulted to 0, i.e., a dynamically-assigned port. It doesn't appear to be possible to change/set this value at runtime currently. 

@milas, this is all correct. It can be set using the BORDER_AGENT_UDP_PORT at build time. There is an API to get the UDP port: otBorderAgentGetUdpPort(). There is no API to set this at run time, but it can be added easily. 

However, I would suggest, if possible, checking otBorderAgentGetUdpPort() to learn the current port and then updating the firewall code dynamically.

One thing to note is that when ephemeral key mode is enabled/used (otBorderAgentSetEphe…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@milas
Comment options

@abtink
Comment options

abtink Dec 27, 2024
Collaborator

Answer selected by milas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants