Open david-ramsden opened 10 months ago
Another observation is that /etc/resolv.conf inside the jail doesn't contain the IPv4 nameserver that is present in the host's /etc/resolv.conf. Only the IPv6 nameserver is present. Unrelated (I think?) to this issue but commenting so that I don't forget about it.
[MANDATORY] Describe the bug [MANDATORY] Disclaimer: New user to FreeBSD, jails and Bastille.
I have the requirement to deploy dual stack jails. I'm doing so using an external bridge so that I can use IPv6 RAs from my VPS provider and also IPv4 using RFC1918 addressing and NAT via pf on the host. As such, I've installed bastille from the latest git main branch to take advantage of dual stack jail deployment.
However, after creating a jail, the rc.conf that has been created doesn't work and no networking comes up. I need to change rc.conf and restart netif to get things going.
See steps to reproduce for detailed information.
[MANDATORY] Bastille and FreeBSD version (paste
bastille -v && freebsd-version -kru
output)[MANDATORY] How did you install bastille? (port/pkg/git) git
[optional] Steps to reproduce?
Create a new jail, e.g:
bastille create -B test2 14.0-RELEASE "10.77.4.3/24 SLAAC" bastille1
Output from jail creation:
(side note: is there a typo in the text "no IP address found for not set" - should this be "or" instead of "for"?)
Console to the jail and check ifconfig:
No IPv4 or IPv6 config has been applied to vnet0 interface.
/etc/rc.conf is as follows:
When restarting netif, the following error is seen:
ifconfig: inet6: bad value
To resolve this, I edit rc.conf and remove the inet6 parameters from the
ifconfig_vnet0
variable and use aifconfig_vnet0_ipv6
specific variable, e.g:Now restarting netif produces no errors and IPv4 and IPv6 are configured as expected.