Skip to content

Automatically set ice ips#663

Merged
patrickelectric merged 3 commits intobluerobotics:masterfrom
rafaellehmkuhl:automatically-set-ice-ips
Jan 2, 2024
Merged

Automatically set ice ips#663
patrickelectric merged 3 commits intobluerobotics:masterfrom
rafaellehmkuhl:automatically-set-ice-ips

Conversation

@rafaellehmkuhl
Copy link
Member

@rafaellehmkuhl rafaellehmkuhl commented Dec 23, 2023

Fix #659.
To be merged after #655.

@patrickelectric patrickelectric merged commit b9077c1 into bluerobotics:master Jan 2, 2024
@rafaellehmkuhl rafaellehmkuhl deleted the automatically-set-ice-ips branch January 2, 2024 23:40
Comment on lines +252 to +256
const isIceIp = availableIceIps.value.includes(ipInfo.ipv4Address)
const alreadyAllowedIp = allowedIceIps.value.includes(ipInfo.ipv4Address)
if (ipInfo.interfaceType !== 'WIRED' || alreadyAllowedIp || !isIceIp) return
console.info(`Adding the wired address '${ipInfo.ipv4Address}' to the list of allowed ICE IPs.`)
allowedIceIps.value.push(ipInfo.ipv4Address)
Copy link
Member

@joaoantoniocardoso joaoantoniocardoso Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm late for the party, but just for future note, this IPv4 thing is a nightmare. I know BlueOS doesn't use IPv6, but nothing is helping to debug when the ICE strategy fails because it's using IPv6.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Joao, could you detail the situation where this is creating a problem? Are IPv6 addresses being offered on the allowed list right now or are you talking about manual inputed ones?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no restrictions on the MCM side, so when the network uses IPV6, ICE will use it, and Cockpit will not be able to use it, right?

Copy link
Member Author

@rafaellehmkuhl rafaellehmkuhl Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it!
I'm actually not sure.
Is beacon providing information on IPv6 addresses?
Can you check at http://blueos.local/beacon/v1.0/services? I don't have IPv6 here to check.
@Williangalvani does Beacon works with IPv6?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically choose the allowed ICE IPs when possible

3 participants

Comments