The following files do not appear

matias80

Verified User
Joined
Sep 13, 2023
Messages
19
These files do not appear in the directadmin administrator panel: /etc/csf/csf and /etc/init.d/iptables

I would like to change some doors
 
use ssh and install mc program for easy use

EDIT : I am not sure what you want to achieve but most of the settings are doable inside the CSF link inside DA
 
1697319272601.png


I need him to appear here for me.
 
How did you manage to get in it this directory anyway ? just tested with one of our servers and see only this directorys:
1697320475035.png
 
/etc/csf/csf and /etc/init.d/iptables
It's /etc/csf/csf.conf and you won't find that via the file editor.
The iptables is not a file but a binairie, you can not edit that one.

To change things in csf.conf you need to go to the Directadmin admin's section, there you find the Configserver Firewall somewhere in which you can change most (but not all) settings.

Or like @Active8 suggested in post #2, use SSH and edit the /etc/csf/csf.conf file.

I would like to change some doors
I presume you mean ports.
You should be able to do that in the Configserver firewall plugin.
 
use ssh and install mc program for easy use

EDIT : I am not sure what you want to achieve but most of the settings are doable inside the CSF link inside DA
Can you give me the steps to install this mc program
 
Can you give me the steps to install this mc program
depending from your OS but for almalinux/centos/rocky just install epel first (if not done before)
Code:
dnf install epel-release
dnf install mc
after install just run mc command from the prompt
 
1697420296236.png


There is no ConfigServer Security & Firewall in this so it won't let me change it. Is there a way to enable editing in the directdamin panel? This mc command does not allow ssh with the message that a new version of Ubuntu is needed, my version is Ubuntu 20.04 (LTS) x64. Grateful
 
There is no ConfigServer Security & Firewall in this
Your screenshot -is- from Configserver Security & Firewall.
As said, not everything be done via Directadmin panel, some settings in the csf.conf need to be done via SSH.

MC is not intended to connect with SSH. You can use it when you are already logged in via SSH.

If you are on Ubuntu, then you need another command to install MC, try this:
sudo apt install mc
after installation you can start just by typing mc and it looks a bit like Total Commander in Windows.

However, I would suggest to use nano to edit the csf.conf file to prevent risk of odd things by the build in MC editor.

If not installed you can install it the same way:
sudo apt install nano
and then edit like this:
Code:
cd /etc/csf
nano csf.conf

On the bottom of the editor is shown what you can do like ctrl-x to close and if something is change you can use y to confirm changes.

Don't forget to restart csf and lfd after making changes:
csf -ra
 
Back
Top