-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] Pot should run ip6addrctl on jail startup #203
Labels
Comments
grembo
added a commit
to grembo/pot
that referenced
this issue
Feb 7, 2022
This applies to pots without an rc script. Closes bsdpot#201 Fixes bsdpot#203
grembo
added a commit
to grembo/pot
that referenced
this issue
Feb 7, 2022
This applies to pots without an rc script. Closes bsdpot#201 Fixes bsdpot#203
grembo
added a commit
to grembo/pot
that referenced
this issue
Feb 7, 2022
This applies to pots without an rc script. Closes bsdpot#201 Fixes bsdpot#203
grembo
added a commit
to grembo/pot
that referenced
this issue
Feb 8, 2022
In case of IPv4-only, give IPv4 addresses the highest precedence, in other cases (IPv6/dual-stack), prefer IPv6 addresses. This fixes dual-stack tools like ping. Only implemented for tinirc, as pots running standard rc run these commands by default. While there, add "wait for epair" also for IPv6 and private vnet interfaces. Fixes bsdpot#203
grembo
added a commit
to grembo/pot
that referenced
this issue
Feb 8, 2022
In case of IPv4-only, give IPv4 addresses the highest precedence, in other cases (IPv6/dual-stack), prefer IPv6 addresses. This fixes dual-stack tools like ping. Only implemented for tinirc, as pots running standard rc run these commands by default. While there, add "wait for epair" also for IPv6 and private vnet interfaces. Fixes bsdpot#203
pizzamig
pushed a commit
that referenced
this issue
Feb 9, 2022
In case of IPv4-only, give IPv4 addresses the highest precedence, in other cases (IPv6/dual-stack), prefer IPv6 addresses. This fixes dual-stack tools like ping. Only implemented for tinirc, as pots running standard rc run these commands by default. While there, add "wait for epair" also for IPv6 and private vnet interfaces. Fixes #203
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Describe the bug
(Usually?) pot installations are based on ipv4, but without calling
ip6addrctl
, the default address selection policy uses IPv6 in case a domain has an AAAA record. This makes some tools chose the wrong protocol.To Reproduce
Create a pot that is based on /tmp/tinirc, jexec into the running jail, then:
Expected behavior
Expect 5. from above to work by default (prefer IPv4 in an IPv4 based pot).
Additional context
Fixing this should be fairly straightforward. The general question of course is how much of these things should be done by pot itself and which things should be done by the container's payload (some customized script).
Either way, in this case the fix is fairly simple - either call
service ip6addrctl start
like above, or do what /etc/rc.d/ip6addrctl would do in /tmp/tinirc:Maybe calling
service ip6addrctl start
(but not stopping in case that didn't work), might be some good real-world middle-ground solution, as it would allow less-stripped down images to override the default (by changing theip6addrctl_policy
in rc.conf), while those who create really stripped-down images (without /etc/rc.d) could still setup things in their own scriptwork as they want.The text was updated successfully, but these errors were encountered: