That is very odd. In Almalinux 9 it's just working fine.
If you put a ip in the csf.allow file and restart csf and lfd, and it does not work or you can't reach SSH for example, then there should be something to be found in the logs about the connections being made.
As said you can also use APF/BFD but I doubt that this will work if CSF does not as it's all only a kind of shell for configurating iptables. Only difference is that the RHEL9 versions are using nftables. But that is all working together, whe I check with locate:
/etc/alternatives/iptables
/etc/alternatives/iptables-restore
/etc/alternatives/iptables-save
/usr/sbin/iptables
/usr/sbin/iptables-nft
/usr/sbin/iptables-nft-restore
/usr/sbin/iptables-nft-save
/usr/sbin/iptables-restore
/usr/sbin/iptables-restore-translate
/usr/sbin/iptables-save
/usr/sbin/iptables-translate
Maybe you can check if those are present in your case too.
Thanks.
Here is the content of /etc/csf/csf.allow:
###############################################################################
# Copyright 2006-2018, Way to the Web Limited
# URL:
http://www.configserver.com
# Email:
[email protected]
###############################################################################
# The following IP addresses will be allowed through iptables.
# One IP address per line.
# CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24).
# Only list IP addresses, not domain names (they will be ignored)
#
# Advanced port+ip filtering allowed with the following format
# tcp/udp|in/out|s/d=port|s/d=ip
# See readme.txt for more information
#
# Note: IP addressess listed in this file will NOT be ignored by lfd, so they
# can still be blocked. If you do not want lfd to block an IP address you must
# add it to csf.ignore
tcp|out|u=0 # Added by DirectAdmin - Thu Apr 18 19:42:01 2024
udp|out|u=0 # Added by DirectAdmin - Thu Apr 18 19:42:01 2024
x.x.x.x # csf SSH installation/upgrade IP address - Fri Apr 19 05:55:07 20
x.x.x.0/24
x.x.x.0/24
x.x.x.0/24
Normally only the above IP ranges are allowed to access SSH, and the rest cannot. However, any IP can access SSH at present.
Any troubleshooting is very appreciated.
Thanks