toplisek

Well-Known Member
Jan 7, 2010
286
23
68
Which Linux command should be executed to see csf.conf file? Can be managed inside ConfigServer Security & Firewall - csf v14.16?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,597
2,617
363
cPanel Access Level
Root Administrator
When CSF is installed, you get the plug which allows you to make most changes directly in the WHM interface. You can always use your favorite text editor to edit the /etc/csf/csf.conf file directly on the command line if you want, but you would need to restart the CSF service after making any changes.
 
  • Like
Reactions: ejsolutions

toplisek

Well-Known Member
Jan 7, 2010
286
23
68
I need to place code in raw file (not scary...). As I understand Firewall Configuration is just visual interface to modify this file with a new setting.
As I execute a command as root like /etc/csf/csf.conf it will be an error: Permission denied. This is the reason and question about raw file.
 

toplisek

Well-Known Member
Jan 7, 2010
286
23
68
nano /etc/csf/csf.conf
It works to read and edit. is it possible to read all content as nano ...
Is it supported within cPanel all content within CSF.conf?
 
Last edited:

ejsolutions

Well-Known Member
Jan 6, 2013
87
36
68
cPanel Access Level
Root Administrator
Still scary! (If you needed to ask, then you shouldn't be doing what you intend to do - a little knowledge is a dangerous thing.)
Use ConfigServer Explorer, then you can open in a GUI, if you must.
Real Men use vi. :cool:
 
  • Like
Reactions: cPRex

quietFinn

Well-Known Member
Feb 4, 2006
2,041
551
493
Finland
cPanel Access Level
Root Administrator
If you really need to edit the file /etc/csf/csf.conf make a backup of it 1st.
cd /etc/csf
cp csf.conf csf.conf.BAK

Real Men use vi. :cool:
Yes and real programmers build their own compiler :rolleyes:
 
  • Like
Reactions: ejsolutions