Closed eoli3n closed 11 months ago
Workaround : downgrade to quarterly package
# bastille -v
0.9.20220714
This is still causing issues on 13.2-RELEASE, would hang indefinitely on restart/stop commands. Downgrade worked for now.
Please compare the bastille.conf
with the bastille.conf.sample
and merge any missing configuration lines. A couple were added this year that lead to this type of behavior if not found.
cd /usr/local/etc/bastille
diff -u bastille.conf bastille.conf.sample
Please compare the
bastille.conf
with thebastille.conf.sample
and merge any missing configuration lines. A couple were added this year that lead to this type of behavior if not found.cd /usr/local/etc/bastille diff -u bastille.conf bastille.conf.sample
Thank you, it was missing several lines relating to pf configuration.
Fixed for me too. Thanks
I get the exact same error:
$ sudo bastille start natJail
[natJail]:
natJail: created
pfctl: DIOCGETRULES: Invalid argument
$ bastille -v
0.10.20231125
the diff command reports no changes between the two files above.. and they are identical to the current version on repo: https://github.com/BastilleBSD/bastille/blob/master/usr/local/etc/bastille/bastille.conf.sample
EDIT: nevermind; it has no real effect/issues. the redirection is working..
Works fine on FreeBSD 13.2, I get the "pfctl: DIOCGETRULES: Invalid argument" too on 14.0 and 14.1 no matter what I've tried. I even installed a fresh FreeBSD 14.1 with the minimal /etc/pf.conf required by bastille and created a test jail, same problem. The rdr and the jails do appear to work fine.
I backed out of my "upgrade" to FreeBSD 14.1 and rather went with FreeBSD 13.3 which is supported for another year. I imported my jails and all is good, no pfctl error. Hopefully this will be fixed, eventually.
I still have the "pfctl: DIOCGETRULES: Invalid argument", let's check if an issue relates this
[MANDATORY] Describe the bug [MANDATORY] When I start my jails, bastille complains.
/etc/pf.conf
Then I can't even stop a jail, it hangs indefinitely. My configuration is working since two years without problem and I didn't change anything except upgrading.
[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?
Upgrade to latest version of Freebsd 13.2, and pkg, start a jail.