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

Enable dual stack support for balena tunnel #2908

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

pipex
Copy link
Contributor

@pipex pipex commented Jan 6, 2025

The balena tunnelcommands uses localhost as the default listening address. The problem is that on some dual stack networks (IPv4/IPv6), this can result on the tunneling server only binding to ::1 and not to 127.0.0.1, potentially causing issues as this behavior is not intuitive.

This PR replaces the default server name with :: which setups the tunneling server in dual-stack mode.

Change-type: patch

pipex added 2 commits January 6, 2025 15:01
The `balena tunnel`commands uses `localhost` as the default listening
address. The problem is that on some dual stack networks (IPv4/IPv6),
this can result on the tunneling server only binding to `::1` and not
to `127.0.0.1`, potentially causing issues as this behavior is not
intuitive.

This PR replaces the default server name with `::` which setups the
server in dual-stack mode.

Change-type: patch
@pipex pipex changed the title Dual stack tunnel Enable dual stack support for balena tunnel Jan 6, 2025
@pipex pipex requested a review from otaviojacobi January 6, 2025 18:09
@pipex
Copy link
Contributor Author

pipex commented Jan 6, 2025

Note that this may have some security implications as :: is equivalent to binding to 0.0.0.0. Putting this in draft pending some internal discussion

@pipex pipex marked this pull request as draft January 6, 2025 18:18
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.

1 participant