-
Notifications
You must be signed in to change notification settings - Fork 144
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
[DOC] Fresh install on FreeBSD 14.1: jails cannot access internet via the host #703
Comments
Any update? Bastille I unusable at this point with a 14.1 jail. |
ran into this issue today. i guess that i'll just use a 14.0 jail for now? edit: sorry, didn't read close enough. the issue is with the host version. in that case, i guess there's nothing i can do beyond reinstalling freebsd on my server? |
Is your /etc/resolv.conf populated with your name server and DNS? I’ve noticed that lately jails that I created somehow don’t have the resolv.conf file populated. I have to manually copy it in from the host. |
@tschettervictor yeah, my resolv.conf is fine as far as I can tell |
@waseigo if you install from source instead of from pkg does it behavethe same or different?? THE PKG version is quite far behind the source version. We need to fix that fact, but it is a current fact. |
Also, check inside your jail. What is the output from ifconfig inside the jail? can you ping the jail FROM the host using the ip address? I am struggling to recreate this |
confirmed the issue with a fresh install of 14.1 and following the loopback (bastille0) documenation and the jails do not connect. Same setup without using bastille0 but putting on network directly everythying works. |
Hi @waseigo between your step 3 and 4 did you started |
i have been having the same issue, and i am quite certain that i followed the bastille documentation exactly, including writing the pf configuration and then starting pf. like @bmac2 says, following the setup instructions in the bastille docs on a fresh install of 14.1 leads to jails failing to connect to the network. i ran into this with a fresh install of 14.1 on a vps. i ended up giving up on getting bastille to work, and switched the vps to debian, but i can switch it back over if there are any tests that i can perform that might be helpful |
@CrashAndSideburns I tested on fresh installs of 13.4, and 14.1 (even on 14.0) and it works correctly using Bastille HEAD. I did not used My steps after a fresh 14.1-RELEASE: # pkg install git-lite
# git clone https://github.com/BastilleBSD/bastille.git
# cd /root/bastille
# make install
# cp /usr/local/etc/bastille/bastille.conf.sample /usr/local/etc/bastille/bastille.conf
# cd /root
# bastille setup
# service pf restart
# bastille bootstrap 14.1-RELEASE update
# bastille create alcatraz 14.1-RELEASE 10.17.89.10/24
# bastille pkg alcatraz install vim And it correctly tries to install whatever I want from the internet. This is an screenshot running |
@yaazkal i just followed those exact steps on a fresh 14.1 install, but running
i really have no idea why this is happening. i followed your steps exactly. the only difference is that i was testing on an amd64 device instead of an aarch64 device, but i would be shocked if that mattered here |
Confirmed working on my end also using the HEAD version. 14.0-RELEASE. I tried following the instructions without copying the new file, and it didn't work. But once I copied in the new one, things started working. |
@CrashAndSideburns @waseigo let me ask, do you have local unbound enabled? Maybe you choose it as an option when installing FreeBSSD? |
Hello everyone, thank you for the responses. It's been such a long time that I ditched FreeBSD and moved back to Proxmox VE, so I don't anymore have the setup I had back when I reported the issue. |
oh my god, how embarrassing. that was the issue. i had installed it with local unbound enabled. getting rid of it solved everything |
No worries, I'll let this issue open until we document that. Changing labels of the issue. Regards. |
[MANDATORY] Describe the bug [MANDATORY]
Bastille was running just fine on a FreeBSD 14.0 host. I upgraded the host to 14.1 and all jails lost access to the internet.
To verify that this was not something specific to that one host, I tried again with a fresh install of bastille on a fresh 14.1 install on a VM. Same behavior.
[MANDATORY] Bastille and FreeBSD version (paste
bastille -v && freebsd-version -kru
output)[MANDATORY] How did you install bastille? (port/pkg/git)
pkg
[optional] Steps to reproduce?
pf.conf
.pkg install ...
.The problem persists after a reboot (just to make sure that eveyrthing that's supposed to run also runs at boot.
[optional] Expected behavior
Host resolution succeeds.
[optional] Other information
uname -a
/etc/rc.conf
ifconfig
/etc/pf.conf
The text was updated successfully, but these errors were encountered: