Code:
# freebsd-version ; uname -a
13.0-RELEASE-p11
FreeBSD x 13.0-RELEASE-p11#0 Tue Apr 5 18:54:35 UTC 2022 root@amd64-builder.demonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
On this host I have sshd listening on this port:
Code:
tcp 0 0 192.168.0.1.22 *.* LISTEN
In pf.conf I have this filter rule placed before all other filters:
Code:
### Filtering
pass quick log from 216.184.71.41
With pf enabled when I attempt to connect from 216.184.71.41 this is logged:
Code:
2022-04-28 09:22:43.655355 rule 2008/0(match): pass in on em4: 216.185.71.41.51794 > 192.168.0.1.22: Flags [S], seq 78510686, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS[|tcp]>
However, sshd times out:
Code:
[root@vhost01 ~ (master)]# sshx 192.168.0.1
ssh: connect to host 192.168.0.1 port 22: Operation timed out
With pf disabled I can connect:
Code:
[root@vhost01 ~ (master)]# sshx 192.168.0.1
!!Warning!! - Any deliberate attempt to access this resource without
legitimate authorization is a criminal offence
(R.S.C. 1985, c. C-46 - Section 342.1).
Last login: Thu Apr 28 08:38:57 2022
FreeBSD 13.0-RELEASE-p11 (GENERIC) #0: Tue Apr 5 18:54:35 UTC 2022
. . .
How is it that the connection passes through the firewall yet the ssh session cannot be established?