[GH-ISSUE #615] [Question] Use of IPv4 and IPv6 #157

Open
opened 2026-05-07 00:19:28 +02:00 by BreizhHardware · 2 comments

Originally created by @user876456 on GitHub (Feb 9, 2026).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/615

Hello,

I use both IPv4 and IPv6 in my infrastructure but it seems that i can only use one of them in the bastion. If both are set to true in bastion's configuration, it uses by default only IPv4. Is there any way to make them both work or is it not supported ?
Thank you.

Originally created by @user876456 on GitHub (Feb 9, 2026). Original GitHub issue: https://github.com/ovh/the-bastion/issues/615 Hello, I use both IPv4 and IPv6 in my infrastructure but it seems that i can only use one of them in the bastion. If both are set to true in bastion's configuration, it uses by default only IPv4. Is there any way to make them both work or is it not supported ? Thank you.
Author
Owner

@speed47 commented on GitHub (Mar 6, 2026):

Hello,

You can absolutely use both. If you then try to connect to a host that has both types of IPs, the host will be resolved by your DNS (or more precisely by the OS on which the bastion is running), and the bastion will try to connect to the first IP returned. If you try to connect to a host that has both an IPv4 and an IPv6, and if the DNS always returns the IPv4 first, then the bastion will try that.

Does that answer your question? If not, can you tell more precisely what you expected vs what you're seeing?

<!-- gh-comment-id:4011283961 --> @speed47 commented on GitHub (Mar 6, 2026): Hello, You can absolutely use both. If you then try to connect to a host that has both types of IPs, the host will be resolved by your DNS (or more precisely by the OS on which the bastion is running), and the bastion will try to connect to the first IP returned. If you try to connect to a host that has both an IPv4 and an IPv6, and if the DNS always returns the IPv4 first, then the bastion will try that. Does that answer your question? If not, can you tell more precisely what you expected vs what you're seeing?
Author
Owner

@user876456 commented on GitHub (Mar 17, 2026):

Hello,

Thank you for your reponse! Is it possible to prioritized IPv6 over IPv4 directly in bastion's configuration ?

<!-- gh-comment-id:4073195001 --> @user876456 commented on GitHub (Mar 17, 2026): Hello, Thank you for your reponse! Is it possible to prioritized IPv6 over IPv4 directly in bastion's configuration ?
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#157
No description provided.