[GH-ISSUE #177] official IPv6 support #40

Closed
opened 2026-05-07 00:17:59 +02:00 by BreizhHardware · 6 comments

Originally created by @ybovard on GitHub (Apr 26, 2021).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/177

when I try to ssh through my bastion an IPv6, I receive:

~ Unable to resolve host '<ipv6_address>' (IP <ipv6_address> version is not allowed)

It works fine with the IPv4 address of the host. The groupAddServer works with IPv4 and IPv6
Did I made something bad?

Originally created by @ybovard on GitHub (Apr 26, 2021). Original GitHub issue: https://github.com/ovh/the-bastion/issues/177 when I try to ssh through my bastion an IPv6, I receive: ``` ~ Unable to resolve host '<ipv6_address>' (IP <ipv6_address> version is not allowed) ``` It works fine with the IPv4 address of the host. The groupAddServer works with IPv4 and IPv6 Did I made something bad?
BreizhHardware 2026-05-07 00:17:59 +02:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@speed47 commented on GitHub (May 19, 2021):

Hello,

I disabled IPv6 connections because this is not yet part of the automated tests stack, so I can't guarantee everything works correctly. As I knew we would want to support IPv6 at some point, most of the code has been written with this in mind so the fixes to get it working, if any is needed, should be minimal.

Now that there seems to be some interest, I'll add this to the todo list :)

<!-- gh-comment-id:844181320 --> @speed47 commented on GitHub (May 19, 2021): Hello, I disabled IPv6 connections because this is not yet part of the automated tests stack, so I can't guarantee everything works correctly. As I knew we would want to support IPv6 at some point, most of the code has been written with this in mind so the fixes to get it working, if any is needed, should be minimal. Now that there seems to be some interest, I'll add this to the todo list :)
Author
Owner

@dClauzel commented on GitHub (Jul 7, 2024):

Any news about IPv6 support ? It is a blocking issue as more and more infrastructure relay on it.

<!-- gh-comment-id:2212346122 --> @dClauzel commented on GitHub (Jul 7, 2024): Any news about IPv6 support ? It is a blocking issue as more and more infrastructure relay on it.
Author
Owner

@Opwi commented on GitHub (Sep 24, 2024):

Any news about IPv6 support ? It is a blocking issue as more and more infrastructure relay on it.

To activate the IPv6 support, I just replace this $v6 = 0 if not defined $v6; by $v6 = 1 if not defined $v6; on this file and this works in my case.

It's just a workaround. I hope one day the official IPv6 will come 😊.

<!-- gh-comment-id:2371955035 --> @Opwi commented on GitHub (Sep 24, 2024): > Any news about IPv6 support ? It is a blocking issue as more and more infrastructure relay on it. To activate the IPv6 support, I just replace this `$v6 = 0 if not defined $v6;` by `$v6 = 1 if not defined $v6;` on this [file](https://github.com/ovh/the-bastion/blob/v3.16.99-rc2/lib/perl/OVH/Bastion/allowdeny.inc#L292) and this works in my case. It's just a workaround. I hope one day the official IPv6 will come 😊.
Author
Owner

@speed47 commented on GitHub (Dec 16, 2024):

At some point we'll also need it internally, so I'll dedicate some time to work on it in the next few days/weeks.

As you said, it mostly works correctly already, but hasn't been extensively tested, so there are probably a few quirks here and there and I don't want to declare official support before having tested it enough, including adding IPv6 tests to the suite.

If you "force" enable it and see issues, don't hesitate to report them, though. :)

<!-- gh-comment-id:2545693279 --> @speed47 commented on GitHub (Dec 16, 2024): At some point we'll also need it internally, so I'll dedicate some time to work on it in the next few days/weeks. As you said, it mostly works correctly already, but hasn't been extensively tested, so there are probably a few quirks here and there and I don't want to declare official support before having tested it enough, including adding IPv6 tests to the suite. If you "force" enable it and see issues, don't hesitate to report them, though. :)
Author
Owner

@speed47 commented on GitHub (Jan 3, 2025):

Pre-released in v3.18.99-rc1, don't hesitate to test it and comment back here if any issue is found!

<!-- gh-comment-id:2569478932 --> @speed47 commented on GitHub (Jan 3, 2025): Pre-released in `v3.18.99-rc1`, don't hesitate to test it and comment back here if any issue is found!
Author
Owner

@speed47 commented on GitHub (Jul 8, 2025):

Released

<!-- gh-comment-id:3048962192 --> @speed47 commented on GitHub (Jul 8, 2025): Released
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#40
No description provided.