After upgrading from 9.1 to 10.0-RELEASE, authpf does not work anymore. The SSH session is immediately terminated after login and the syslog contains the following error message "error removing stale rulesets" (apparently something in remove_stale_rulesets() goes wrong):
root@freebsd:/var/log # tail -n 3 all.log
Jan 29 16:30:13 freebsd sshd: Accepted keyboard-interactive/pam for test from 192.168.0.11 port 52213 ssh2
Jan 29 16:30:13 freebsd authpf: error removing stale rulesets
Jan 29 16:30:13 freebsd sshd: Received disconnect from 192.168.0.11: 11: disconnected by user
How-To-Repeat: I can reproduce the problem on a freshly installed system with the following minimal config (the same config works on both 9.1 and 9.2):
echo 'pf_enable="YES"' >> /etc/rc.conf
mount -t fdescfs null /dev/fd
<create user "test">
echo /usr/sbin/authpf >> /etc/shells
chsh -s authpf test
<login as user "test" via SSH>
I just checked: The problem still exists on the 10.1-RC2.
For bugs that match the following
- Status Is In progress
- Untouched since 2018-01-01.
- Affects Base System OR Documentation
Reset to open status.
I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.