thanks.
What if I dont need to set some IPs to access SSH on that port, and just want all IPs to access it on that port; it is inevitable to open that port in CSF config file?
"This is not required. If you have the /24 ip's in the csf.allow then don't put this in the csf.deny. Just do not open port 1154 in your firewall as I stated earlier and then you should be fine." - That is an alternative way!
Here is what I did:
a)
$ vi /etc/csf/csf.allow
tcp|in|d=1154|s=x.x.220.0/24
tcp|in|d=1154|s=x.x.222.0/24
tcp|in|d=1154|s=x.x.225.0/24
The above will allow the 3 IP ranges to access SSH on port 1154
b)
$ vi /etc/csf/csf.deny
tcp|in|d=1154|s=0.0.0.0/0
The above will deny all IPs except...
I have used this 11 years old guide; and it works well. For Centos 7, I just input IP ranges in this file /etc/csf/csf.allow, and the rest of IPs cannot access SSH.
For Centos Stream 9, the above wont work. There is need for inputting all denied IPs in /etc/csf/csf.deny
Here is the guide...
Thanks. What tests you want me to conduct on my server?
I have posted that issue on https://forum.configserver.com/viewtopic.php?t=13122 without responses. There was no surprise as someone posted similar issue to mine at the beginning of April 2024 without responses too. So I am not alone to...
Dear Sir,
I have installed Direct Admin on Centos Stream 9 successfully without errors.
However, I have not been able to log into phpMyAdmin using DA's credentials. So I issued the following commands to fix it:
$ da config-set one_click_pma_login 1 --restart
$ da build phpmyadmin
$ reboot...
Very strange because I have installed & configured CSF on Centos 7 for over the last 3 years; and it worked very well. But it does not work on Centos Stream 9 and even Almalinux 8 I did earlier.
I have upgraded Centos Stream 8 to Almalinu 8.9 successfully using this guide:
https://adamtheautomator.com/centos-stream-to-almalinux/
and then managed to install CSF firewall successfully using this guide:
https://www.linuxtuto.com/how-to-install-and-configure-csf-on-almalinux-9/
However...
I have tried to find how to upgrade from Centos Streem 9 to Almalinux 9, but could not find one.
There is a guide of upgrading stream 8 to Almalinux 8, but stream 8 is end of life soon.
Thanks
All is OK, but CSF seems not working on Centos Stream 9 on my machine.
I have tried FirewallD:
https://serverfault.com/questions/680780/block-all-but-a-few-ips-with-firewalld
It has logged me out of SSH - and cannot fix it. So I need to reinstall my vps server a couple of time.
Anyone know...
No there are not.
# sudo systemctl status firewalld
○ firewalld.service
Loaded: masked (Reason: Unit firewalld.service is masked.)
Active: inactive (dead)
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]...
Lot of changes awful for DA. With latest version of DA I installed today, I cannot get access to phpMyAdmin with DA's credentials even I following this guide:
https://forum.directadmin.com/threads/failed-to-login-to-phpmyadmin.70106/
Can you please advise how to fix that.
Many thanks in advance.
Yes. I did that many times on Centos 7. But they dont work on Centos Stream 9 for some reasons on my VPS server. I am still trying FirewallD, but my server has been down now, hm!
I have to wait when it is up.