### Run CSF installation script Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Executes the CSF installation script after extraction. Requires sudo privileges. ```bash sudo sh /usr/src/csf/install.sh ``` -------------------------------- ### Webmin installation output Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Example output from the Webmin installation process, showing package installation and configuration steps. ```shell The following NEW packages will be installed: html2text libalgorithm-c3-perl libauthen-pam-perl libb-hooks-endofscope-perl libb-hooks-op-check-perl libclass-c3-perl libclass-c3-xs-perl libclass-data-inheritable-perl libclass-inspector-perl libclass-method-modifiers-perl libclass-singleton-perl libclass-xsaccessor-perl libcommon-sense-perl libdata-optlist-perl libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl libdbd-mysql-perl libdbi-perl libdevel-callchecker-perl libdevel-caller-perl libdevel-lexalias-perl libdevel-stacktrace-perl libdynaloader-functions-perl libencode-detect-perl libeval-closure-perl libexception-class-perl libfile-sharedir-perl libio-pty-perl libjson-xs-perl libmodule-implementation-perl libmodule-runtime-perl libmro-compat-perl libnamespace-autoclean-perl libnamespace-clean-perl libpackage-stash-perl libpackage-stash-xs-perl libpadwalker-perl libparams-classify-perl libparams-util-perl libparams-validationcompiler-perl libqrencode4 libreadonly-perl libref-util-perl libref-util-xs-perl librole-tiny-perl libsocket6-perl libspecio-perl libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl libsub-name-perl libsub-quote-perl libtypes-serialiser-perl libvariable-magic-perl libxstring-perl qrencode usermin webmin 0 upgraded, 60 newly installed, 0 to remove and 5 not upgraded. Need to get 42.3 MB of archives. After this operation, 265 MB of additional disk space will be used. Do you want to continue? [Y/n] Y [...] Setting up libspecio-perl (0.47-1) ... Setting up libb-hooks-endofscope-perl (0.25-1) ... Setting up libnamespace-clean-perl (0.27-1) ... Setting up libnamespace-autoclean-perl (0.29-1) ... Setting up libdatetime-locale-perl (1:1.33-1) ... Setting up libdatetime-timezone-perl (1:2.51-1+2021e) ... Setting up libdatetime-perl:amd64 (2:1.55-1build1) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for libc-bin (2.35-0ubuntu3.11) ... ``` -------------------------------- ### Set CSF Sponsor License in /etc/csf/csf.conf Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Optional: enter your CSF license key from the Sponsor Program. Replace the placeholder with your actual key. ```bash SPONSOR_LICENSE = "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX" ``` -------------------------------- ### Enable CSF Web Interface in /etc/csf/csf.conf Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Required setting: set UI to "1" to enable the CSF web interface. ```bash UI = "1" ``` -------------------------------- ### Download DirectAdmin setup script (Option 1) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Use this command to download and run the DirectAdmin installation script on your server. Requires a valid DirectAdmin license key. ```bash curl -fsSL https://download.directadmin.com/setup.sh | sudo bash ``` -------------------------------- ### Restart CSF and LFD services Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Restart CSF and start LFD after making configuration changes. Run these commands to apply the changes. ```shell sudo csf -ra sudo systemctl start lfd ``` -------------------------------- ### Run InterWorx CLI installation wizard with goiworx.pex Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Use this command to start the InterWorx CLI installation wizard, which avoids the web installer. You will be prompted for your credentials and license key. ```shell sudo ~iworx/bin/goiworx.pex ``` -------------------------------- ### Download DirectAdmin setup script (Option 2) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Alternative command to download and run the DirectAdmin installation script using a subshell. Requires a valid DirectAdmin license key. ```bash sh <(curl -fsSL https://download.directadmin.com/setup.sh) ``` -------------------------------- ### Method 1: Output of iptables alternative selection Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md Example output shown after running 'sudo update-alternatives --config iptables'. The asterisk marks the current selection; choose the legacy option. ```console There are 2 choices for the alternative iptables (providing /usr/sbin/iptables). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/sbin/iptables-nft 20 auto mode 1 /usr/sbin/iptables-legacy 10 manual mode 2 /usr/sbin/iptables-nft 20 manual mode ``` -------------------------------- ### InterWorx Installation Output Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Example output from the InterWorx installer script, showing system checks and installation details. The hostname must be valid. ```shell STATUS: Determining Linux distribution STATUS: Checking network interface names -=-=-=-=-= Installing InterWorx-CP =-=-=-=-=- This script will install InterWorx-CP on your system. Please make sure that you have backed up any critical data! This script may be run multiple times without any problems. This is helpful if you find an error during installation, you can safely ctrl-c out of this script, fix the error and re-start the script. STATUS: Checking Hostname The hostname 'configserver.dev' is valid. Details of this installation will be logged in iworx-install.log HOSTNAME : configserver.dev TARGET : CentOS Linux release 7.9.2009 (Core) PLATFORM : GNU/Linux PROCESSOR : x86_64 RPM TARGET : rhe7x RPM DISTRO : cos7x RPM DIR : /usr/src/redhat/RPMS SRPM DIR : /usr/src/redhat/SRPMS SRPM HOST : updates.interworx.com IWORX REPO : ga DEFAULT PHP: PHP 8.2 MYSQL : MARIADB 10.6 ``` -------------------------------- ### Set CSF Admin Username & Password in /etc/csf/csf.conf Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Required: set UI_USER and UI_PASS. Keeping default values will prevent LFD from starting. ```bash UI_USER = "admin" UI_PASS = "password" ``` -------------------------------- ### Allow Public Access to CSF Web Interface in /etc/csf/csf.conf Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Optional: set UI_BLOCK_PRIVATE_NET to "0" to temporarily allow external access for debugging only. Do not leave it set to 0. ```bash UI_BLOCK_PRIVATE_NET = "1" ``` -------------------------------- ### Enable CSF and LFD Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/services.md Enables CSF and LFD services. Run this to ensure both are enabled. ```shell sudo csf -e ``` -------------------------------- ### Cyberpanel installation output Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Example output after Cyberpanel installation completes, showing credentials, access URL, and firewall port requirements. Note the prompt to restart the server. ```shell [INFO] WebAdmin console password regenerated [FUNCTION] Starting: Post_Install_Setup_Watchdog [FUNCTION] Starting: Post_Install_Tweak [INFO] Applying post-installation tweaks and configurations Admin password successfully changed! Finalizing... Cleaning up... [INFO] Cleaning up temporary installation files [FUNCTION] Starting: Post_Install_Display_Final_Info [INFO] Preparing final installation information ###################################################### CyberPanel Successfully Installed Current Disk usage: 3/997GB (0%) Current RAM usage: 655/63171MB (1.04%) Installation time : 0 hrs 9 min 0 sec Visit: https://0.0.0.0:8090 Panel username: admin Panel password: XXXXXXXXXXXXXXXXX Run cyberpanel help to get FAQ info Run cyberpanel upgrade to upgrade it to latest version. Run cyberpanel utility to access some handy tools. Website: https://www.cyberpanel.net Forums: https://forums.cyberpanel.net Wikipage: https://cyberpanel.net/KnowledgeBase/ Docs: https://cyberpanel.net/docs/ Enjoy your accelerated Internet by CyberPanel & OpenLiteSpeed ###################################################### Microsoft Azure detected... This provider has a network-level firewall Please make sure you have opened following port for both in/out: TCP: 8090 for CyberPanel TCP: 80, TCP: 443 and UDP: 443 for webserver TCP: 21 and TCP: 40110-40210 for FTP TCP: 25, TCP: 587, TCP: 465, TCP: 110, TCP: 143 and TCP: 993 for mail service TCP: 53 and UDP: 53 for DNS service Would you like to restart your server now? [y/N]: ``` -------------------------------- ### Method 1: Configure arptables and ebtables alternatives Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md If you need to switch the other tables to legacy, run these commands. Note that on newer systems these may not be available. ```shell sudo update-alternatives --config arptables sudo update-alternatives --config ebtables ``` -------------------------------- ### Run LFD with strace Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Run LFD with strace to get hints of any issues or errors. The output shows system calls and exit code 0, indicating a clean exit. ```shell sudo strace -f /usr/sbin/lfd --check ``` -------------------------------- ### Check kernel messages with dmesg Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Run dmesg to check for failure reasons in kernel messages, showing the last 20 lines. ```shell sudo dmesg -T | tail -n 20 ``` -------------------------------- ### View LFD logs Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Run this tail command to inspect the LFD logs located in /var/log/lfd.log when the service is stopped or failed. ```shell sudo tail -n 50 /var/log/lfd.log ``` -------------------------------- ### Example setting with DEBUG_ENABLED flag Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/about/conventions.md Markdown example showing how to document a setting with flags, version, default, and file download extension. ```markdown #### DEBUG_ENABLED This is an example setting. ``` -------------------------------- ### Whitelist IP in Web Interface (/etc/csf/ui/csf.allow) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Add IP addresses to the whitelist file to allow access to the CSF web interface. One IP per line; include localhost and Docker bridge IPs as needed. ```bash 127.0.0.1 # localhost / loopback 172.17.0.1 # For Docker users behind a bridge ``` -------------------------------- ### Access Web Interface URL Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Navigate to the CSF web interface using the local IP and the port configured in csf.conf (default 8765 in this guide). ```text https://127.0.0.1:8765 ``` -------------------------------- ### cPanel installation output Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Example output after cPanel installation completes. Shows the one-time autologin URL to access WHM. ```shell [19126] ( INFO): Flushing the task queue [19126] ( INFO): cPanel install finished in 6 minutes and 28 seconds! [19126] ( INFO): Congratulations! Your installation of cPanel & WHM 11.130 is now complete. The next step is to configure your server. [19126] ( INFO): [19126] ( INFO): Before you configure your server, ensure that your firewall allows access on port 2087. [19126] ( INFO): [19126] ( INFO): After ensuring that your firewall allows access on port 2087, you can configure your server. [19126] ( INFO): [19126] ( INFO): 1. Open your preferred browser [19126] ( INFO): [19126] ( INFO): 2. Navigate to the following url using the address bar and enter this one-time autologin url: [19126] ( INFO): [19126] ( INFO): https://cp.configserver.dev:2087/cpsess4927138456/login/?session=root%x7rGd9PLkWqz3YFb2t%3acreate_user_session%f8b47c19a5de91b03ce6f20dbb1847e9d2 ``` -------------------------------- ### InterWorx CLI installation wizard output Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Example output from the CLI installation wizard. It shows a warning about an unset IP address, prompts for the license key, and asks for the default NodeWorx user email and password. ```shell +----------------------------------------------------------------------+ | Go! InterWorx | +----------------------------------------------------------------------+ [WARNING] The IP address (XX.XX.XX.XX) of this server was not set! Continue? [y/N] y [NOTE] Getting things ready for activation... [NOTE] This step can take up to 2 minutes. Please be patient... +----------------------------------------------------------------------+ | License Key Setup... | +----------------------------------------------------------------------+ LICENSE KEY: INTERWORX_XXXXXXXXXXXX You entered 'INTERWORX_XXXXXXXXXXXX'. Is this correct? [Y/n] y +----------------------------------------------------------------------+ | Default NodeWorx User Setup... | +----------------------------------------------------------------------+ e-mail address: hello@configserver.dev password: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX confirm : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ``` -------------------------------- ### Check for Errors in /var/log/lfd.log Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md View the log file to confirm no errors. The shown error indicates an IP not whitelisted in /etc/csf/ui/ui.allow was denied access. ```bash lfd[5001]: UI: Access attempt from an IP not in /etc/csf/ui/ui.allow - denied [127.0.0.1] ``` -------------------------------- ### Method 2: CentOS/RHEL alternative selection output Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md Example output shown after running the alternatives command on CentOS/RHEL. Type the number corresponding to the legacy version to make it the default. ```shell There are 2 choices for the alternative iptables (providing /usr/sbin/iptables). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/sbin/iptables-nft 20 auto mode 1 /usr/sbin/iptables-legacy 10 manual mode 2 /usr/sbin/iptables-nft 20 manual mode Enter to keep the current selection[+], or type selection number: 1 ``` -------------------------------- ### Expected output of iptables -V Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md Example output when running `iptables -V`, showing the installed version (e.g., iptables v1.8.7 (legacy)). ```console $ iptables -V iptables v1.8.7 (legacy) ``` -------------------------------- ### Check journalctl for lfd errors Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Use journalctl to check for any errors related to the lfd service. ```shell sudo journalctl -xeu lfd.service ``` -------------------------------- ### Install cPanel trial Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Downloads and runs the cPanel installation script. Requires root privileges and takes 5-20 minutes. ```shell cd /home && sudo curl -o latest -L https://securedownloads.cpanel.net/latest && sudo sh latest ``` -------------------------------- ### Method 1: Configure ip6tables alternative interactively Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md After switching iptables, repeat the same interactive configuration for IPv6 using this command. ```shell sudo update-alternatives --config ip6tables ``` -------------------------------- ### Install Perl modules on APT-based systems Source: https://github.com/aetherinox/csf-firewall/blob/main/src/install.txt Installs required Perl modules using apt-get on APT-based systems. ```bash apt-get install libwww-perl liblwp-protocol-https-perl libgd-graph-perl ``` -------------------------------- ### Install InterWorx - Option 2 Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Download the InterWorx installer script with wget and then run it. Requires root access. ```shell wget updates.interworx.com/interworx/8/install.sh sudo sh install.sh ``` -------------------------------- ### LFD service status output (running) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/services.md Example output showing LFD service active and running. The status includes PID, memory, and CPU usage. ```shell ● lfd.service - ConfigServer Security & Firewall - lfd Loaded: loaded (/usr/lib/systemd/system/lfd.service; enabled; preset: enabled) Active: active (running) since Sun 2025-09-21 01:11:21 UTC; 1min 17s ago Process: 335736 ExecStart=/usr/sbin/lfd (code=exited, status=0/SUCCESS) Main PID: 335770 (lfd - sleeping) Tasks: 1 (limit: 4546) Memory: 38.8M (peak: 55.0M) CPU: 4.375s CGroup: /system.slice/lfd.service └─335770 "lfd - sleeping" ``` -------------------------------- ### Install Webmin on Debian/Ubuntu using apt-get Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Install Webmin and Usermin on Debian/Ubuntu systems using apt-get. Press Y when prompted to continue. ```bash apt-get install --install-recommends webmin usermin ``` -------------------------------- ### Simulate install with --install --dryrun Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/services/get.configserver.md Downloads CSF as csf.zip or csf.tgz, extracts to csf, and simulates the install without making changes. ```shell bash <(wget -qO - https://get.configserver.dev) --install --dryrun ``` -------------------------------- ### Install Webmin on CentOS/RHEL using dnf Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Install Webmin on CentOS/RHEL systems using dnf. The first command performs a standard install; the second skips GPG and SSL checks. ```bash sudo dnf install webmin ``` ```bash sudo dnf install webmin --setopt=sslverify=false --nogpgcheck ``` -------------------------------- ### Example output of sudo csf -v Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/update/v1501-to-newer.md Example output showing the current CSF version. ```shell csf: v15.09 (generic) ``` -------------------------------- ### Run CSF Installation Script Source: https://github.com/aetherinox/csf-firewall/blob/main/README.md Run the installation script. After installation, you must disable testing mode. ```shell sudo sh install.sh ``` -------------------------------- ### Install InterWorx - Option 1 Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Download and run the InterWorx installer script using a one-liner command. Requires root access. ```shell sudo sh <((curl -sL updates.interworx.com/interworx/8/install.sh)) ``` -------------------------------- ### Download Cyberpanel installation script Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Downloads the official Cyberpanel installation script to the current directory. Run as root. ```bash sudo wget -O - https://cyberpanel.net/install.sh > install.sh ``` -------------------------------- ### Run VestaCP installation with build command Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Executes the VestaCP installer with the specified options. The command starts with a space to avoid being recorded in shell history when HISTCONTROL is set to ignorespace. Includes plain-text password, so use with caution. ```shell export HISTCONTROL=ignorespace bash vst-install.sh \ --nginx no \ --apache yes \ --phpfpm no \ --vsftpd no \ --proftpd no \ --exim no \ --dovecot no \ --spamassassin no \ --clamav no \ --named no \ --iptables yes \ --fail2ban no \ --softaculous yes \ --remi yes \ --quota no \ --mysql no \ --postgresql no \ --hostname panel.configserver.dev \ --email user@email.com \ --port 5463 \ --password ********************************* ``` -------------------------------- ### Simulate install to custom folder with --install --folder --dryrun Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/services/get.configserver.md Downloads CSF as csf.zip or csf.tgz, extracts to csftest, and simulates the install without making changes. ```shell bash <(wget -qO - https://get.configserver.dev) --install --folder csftest --dryrun ``` -------------------------------- ### Example output of sudo csf -v after update Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/update/v1501-to-newer.md Example output showing the updated CSF version. ```shell csf: v15.10 (generic) ``` -------------------------------- ### install.sh --help output Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/blog/posts/release-15.02.md Shows the help output for the install.sh script, listing available flags: --detect, --dryrun, --version, and --help. The script supports these flags and provides usage information. ```console $ sudo sh src/install.sh --help ConfigServer Security & Firewall Robust linux iptables/nftables firewall version: 15.02 install.sh [ --detect | --dryrun | --version | --help ] Flags: -D, --detect returns installer script that will run; does not install csf false -d, --dryrun simulates installation, does not install csf false -v, --version current version of this utilty 15.02 -h, --help show this help menu ``` -------------------------------- ### Start LFD service and restart CSF Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/services.md Starts the LFD service and restarts CSF to apply changes. Run these commands as sudo. ```shell sudo systemctl start lfd sudo csf -ra ``` -------------------------------- ### LFD log output showing TESTING error Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Example output from the LFD log indicating that lfd will not run with TESTING enabled in /etc/csf/csf.conf at line 98, and that the daemon stopped. ```shell lfd[99819]: *Error* lfd will not run with TESTING enabled in /etc/csf/csf.conf, at line 98 lfd[99819]: daemon stopped ``` -------------------------------- ### Method 1: Configure iptables alternative interactively Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md Run this command to interactively select the legacy iptables backend. You will be presented with a numbered list; press 1 and then Enter to choose iptables-legacy. ```shell sudo update-alternatives --config iptables ``` -------------------------------- ### Example output of sudo systemctl status csf Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/update/v1501-to-newer.md Example output showing the csf service is active and enabled. ```shell ● csf.service - ConfigServer Security & Firewall - csf Loaded: loaded (/lib/systemd/system/csf.service; enabled; vendor preset: enabled) Active: active (exited) since Mon 2025-11-19 23:45:04 UTC; 14 seconds ago Main PID: 597 (code=exited, status=0/SUCCESS) CPU: 0min 14.956s Notice: journal has been rotated since unit was started, output may be incomplete. ``` -------------------------------- ### Method 2: CentOS/RHEL configure alternatives Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md For CentOS/RHEL using yum/dnf, run these commands to interactively configure each table. You will be prompted to select the legacy version. ```shell sudo alternatives --config iptables sudo alternatives --config ip6tables sudo alternatives --config arptables sudo alternatives --config ebtables ``` -------------------------------- ### Run openvpn.sh with --help flag Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/blog/posts/release-15.09.md Displays the help menu for the openvpn.sh script, listing available options and usage examples. ```bash sudo sh /usr/local/include/csf/post.d/openvpn.sh --help ``` -------------------------------- ### strace output showing clean exit Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Example strace output showing lfd exiting with code 0, meaning success/no error. This indicates the daemon is choosing to shut down cleanly, so check lfd's own logs. ```shell rt_sigaction(SIGRT_25, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGRT_26, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGRT_27, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGRT_28, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGRT_29, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGRT_30, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGRT_31, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGRT_32, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGABRT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGCHLD, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGIO, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 exit_group(0) = ? +++ exited with 0 +++ ``` -------------------------------- ### Run Webmin installer script Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Execute the downloaded Webmin installer script. The output shows the script setting up the Webmin repository and prompting for confirmation. ```shell sudo sh webmin-setup-repo.sh ``` ```shell Setup Webmin releases repository? (y/N) y Downloading Webmin developers key .. .. done Installing Webmin developers key .. .. done Setting up Webmin releases repository .. .. done Cleaning repository metadata .. .. done Downloading repository metadata .. .. done Webmin and Usermin can be installed with: apt-get install --install-recommends webmin usermin ``` -------------------------------- ### Method 2: Debian/Ubuntu set legacy alternatives Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md Use these commands to set iptables, ip6tables, arptables, and ebtables to their legacy versions. If you receive the 'not registered' error for arptables/ebtables, skip those two. ```shell sudo update-alternatives --set iptables /usr/sbin/iptables-legacy sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy sudo update-alternatives --set arptables /usr/sbin/arptables-legacy sudo update-alternatives --set ebtables /usr/sbin/ebtables-legacy ``` -------------------------------- ### Define blocklist in /etc/csf/csf.blocklists Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/usage/ipset.md Example entry for the CSF_HIGHRISK blocklist. The format is name|cache time|max IPs|URL. A max IPs value of 0 means unlimited. The list is cached in /var/lib/csf/csf.block.CSF_HIGHRISK after CSF starts. ```shell CSF_HIGHRISK|43200|0|https://blocklist.configserver.dev/highrisk.ipset ``` -------------------------------- ### Example Output of Download URL Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/services/download.configserver.md Shows the expected output from the previous command, displaying the direct download URL for the latest release. ```shell https://github.com/Aetherinox/csf-firewall/releases/download/15.00/csf-firewall-v15.00.zip ``` -------------------------------- ### Download, extract, and install CSF with --install Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/services/get.configserver.md Downloads CSF as csf.zip or csf.tgz, extracts to csf, and installs CSF. ```shell bash <(wget -qO - https://get.configserver.dev) --install ``` -------------------------------- ### Download, extract, and install CSF to custom folder with --install --folder Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/services/get.configserver.md Downloads CSF as csf.zip or csf.tgz, extracts to csftest, and installs CSF. ```shell bash <(wget -qO - https://get.configserver.dev) --install --folder csftest ``` -------------------------------- ### CSF service status output (inactive) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/services.md Example output when the CSF service is not running, showing 'inactive (dead)' status. ```shell ○ csf.service - ConfigServer Security & Firewall - csf Loaded: loaded (/usr/lib/systemd/system/csf.service; enabled; preset: enabled) Active: inactive (dead) ``` -------------------------------- ### Verify LWP::UserAgent Installation Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/usage/troubleshooting/dependencies.md Run this command to confirm LWP::UserAgent is installed. A successful installation outputs 'LWP OK'. ```shell perl -MLWP::UserAgent -e 'print "LWP OK\n"' ``` -------------------------------- ### Create CSF pre.d and post.d directories Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/integrations/docker.md Create the directories /usr/local/include/csf/pre.d and /usr/local/include/csf/post.d. Scripts in pre.d run before CSF configures iptables; scripts in post.d run after. ```bash sudo mkdir -p /usr/local/include/csf/{pre.d,post.d} ``` -------------------------------- ### Expected output of update-alternatives --display iptables Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md Example output showing that iptables is in manual mode and currently points to /usr/sbin/iptables-legacy. ```shell iptables - manual mode link currently points to /usr/sbin/iptables-legacy ``` -------------------------------- ### Verify lib.pm Installation Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/usage/troubleshooting/dependencies.md Run this command in the terminal to check if the lib module is installed. A successful installation outputs 'lib.pm OK'. ```shell perl -Mlib -e 'print "lib.pm OK\n"' ``` -------------------------------- ### Download Webmin installer script Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Download the Webmin installer script from the official repository using curl. The output shows the download progress. ```shell curl -o webmin-setup-repo.sh \ https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh ``` ```shell % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 17604 100 17604 0 0 59917 0 --:--:-- --:--:-- --:--:-- 60081 ``` -------------------------------- ### Show help with docker.sh --help Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/integrations/docker.md Displays a list of all available commands included in the Docker integration script. Available since stable-15.01. ```bash sudo sh /usr/local/include/csf/post.d/docker.sh --help ``` -------------------------------- ### Install Dependencies on Debian/Ubuntu Source: https://github.com/aetherinox/csf-firewall/blob/main/README.md Run these commands to install required packages for CSF on Debian/Ubuntu systems. ```shell sudo apt-get update && sudo apt-get install -y \ ipset \ libcrypt-ssleay-perl \ libio-socket-inet6-perl \ libio-socket-ssl-perl \ libnet-libidn-perl \ libsocket6-perl \ perl \ wget ``` -------------------------------- ### Download VestaCP installation script with curl Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Downloads the VestaCP installation script from the official source using curl. Run this before executing the installation command. ```shell curl -O https://vestacp.com/pub/vst-install.sh ``` -------------------------------- ### Change CSF Web Interface Port in /etc/csf/csf.conf Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Optional: change the default web interface port by setting UI_PORT to your desired value. ```bash UI_PORT = "6666" ``` -------------------------------- ### Prepare CentOS 7 server for CWP Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Install wget, fix the CentOS 7 repository, update packages, and reboot before installing CWP. ```bash sudo yum -y install wget curl http://centos-webpanel.com/centos7_fix_repository|sudo sh sudo yum -y update reboot ``` -------------------------------- ### Install CWP on CentOS 7 Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Download and run the CWP installation script for CentOS 7. ```bash cd /usr/local/src wget http://centos-webpanel.com/cwp-el7-latest sh cwp-el7-latest ``` -------------------------------- ### Download, Extract, and Install with curl Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/services/get.configserver.md Downloads the latest version of CSF, extracts to the csf folder, and installs by running csf/install.sh. Uses the --install flag. ```shell bash <(curl -sL https://get.configserver.dev) --install ``` -------------------------------- ### Expected output from csftest.pl Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md Example output when the tests run successfully, showing each test passing and the final RESULT line indicating CSF should function on the server. ```terminal Testing ip_tables/iptable_filter...OK Testing ipt_LOG...OK Testing ipt_multiport/xt_multiport...OK Testing ipt_REJECT...OK Testing ipt_state/xt_state...OK Testing ipt_limit/xt_limit...OK Testing ipt_recent...OK Testing xt_connlimit...OK Testing ipt_owner/xt_owner...OK Testing iptable_nat/ipt_REDIRECT...OK Testing iptable_nat/ipt_DNAT...OK RESULT: csf should function on this server ``` -------------------------------- ### Example /etc/csf/ui/ui.allow file with allowed IPs Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/webui.md Shows the expected format of the ui.allow file: one IP address per line, with optional comments. Add your client IP to allow access to the CSF web interface. ```shell 127.0.0.1 # localhost 10.10.0.6 # example LAN ip 40.159.100.6 # example WAN ip ``` -------------------------------- ### LFD service status output (failed) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/services.md Example output showing LFD service in failed state, often due to a signal kill. Use this to identify that the service is not running. ```shell × lfd.service - ConfigServer Security & Firewall - lfd Loaded: loaded (/usr/lib/systemd/system/lfd.service; enabled; preset: enabled) Active: failed (Result: signal) since Sun 2025-09-21 01:52:34 UTC; 20min ago Process: 115504 ExecStart=/usr/sbin/lfd (code=killed, signal=KILL) CPU: 186ms ``` -------------------------------- ### Run Cyberpanel installer as root Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Logs in as root and executes the downloaded install.sh script. Must be run as root; sudo is not sufficient. ```shell su sh install.sh ``` -------------------------------- ### Find TESTING setting in csf.conf Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Locate the TESTING setting in /etc/csf/csf.conf. It is currently set to "1", which must be changed to "0" to allow lfd to run. ```bash TESTING = "1" ``` -------------------------------- ### Run geoipupdate (Basic) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/usage/geoip.md Starts the geoipupdate utility using the default configuration file and database directory. Requires a valid /etc/GeoIP.conf with your AccountID and LicenseKey. ```shell sudo geoipupdate ``` -------------------------------- ### Example blocklist configuration in /etc/csf/csf.blocklists Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/usage/blocklists.md Shows the format for configuring blocklists in the csf.blocklists file. Each line defines a blocklist with fields NAME, INTERVAL, MAX_ENTRIES, and BLOCKLIST_URL. The example includes three blocklists: SPAMDROP, CSF_HIGHRISK, and DSHIELD. The header comment and separator line are part of the displayed example. ```ini # # # Example Blocklists # NAME | INTERVAL | MAX_ENTRIES | BLOCKLIST_URL # # SPAMDROP | 86400 | 0 | https://spamhaus.org/drop/drop.txt CSF_HIGHRISK | 43200 | 0 | https://blocklist.configserver.dev/highrisk.ipset DSHIELD | 86400 | 0 | https://dshield.org/block.txt ---------------------------------------------------------------------------------------------------------------------------------- ^NAME^ ^INTERVAL^ ^MAX_ENTRIES^ ^BLOCKLIST_URL^ ``` -------------------------------- ### Install Dependencies on CentOS/RHEL Source: https://github.com/aetherinox/csf-firewall/blob/main/README.md Run these commands to install required packages for CSF on CentOS/RHEL systems. ```shell sudo yum makecache && sudo yum install -y \ ipset \ perl \ perl-IO-Socket-INET6 \ perl-IO-Socket-SSL.noarch \ perl-libwww-perl \ perl-Net-LibIDN2 \ perl-Net-SSLeay \ perl-Socket6 \ wget ``` -------------------------------- ### Install git package Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/patcher/download.md Ensure the git package is installed so it can be used to fetch the patch. ```shell sudo apt-get install git ``` -------------------------------- ### Install CWP on CentOS 8/Alma/Rocky (recommended) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Download and run the CWP installation script for CentOS 8, AlmaLinux, or Rocky Linux. ```bash cd /usr/local/src wget http://centos-webpanel.com/cwp-el8-latest sh cwp-el8-latest ``` -------------------------------- ### Define CSF Network Adapter Bind in /etc/csf/csf.conf Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/quickstart/install.md Optional: specify which network adapter/IP to bind to. Leave blank to bind to all IPs (0.0.0.0). Choose one of the suggested values; for Docker bridge use the IPv6-mapped address. ```bash UI_IP = "" # bind to all IPs UI_IP = "127.0.0.1" # bind to localhost only UI_IP = "::ffff:172.17.0.1" # bind to docker bridge ``` -------------------------------- ### Output of openvpn.sh --help Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/blog/posts/release-15.09.md Help output showing script version, usage syntax, and available flags for openvpn.sh. ```console ConfigServer Firewall - Docker Patch - v15.0.9 https://github.com/Aetherinox/csf-firewall Sets up your firewall rules t work alongside OpenVPN. This script requires that you have iptables installed on your system. The required packages will be installed if you do not have them. openvpn.sh [ --restart | --flush | --detect | --dryrun | --version | --help ] Syntax: Command openvpn.sh [ --option [ arg ] ] Options openvpn.sh [ -h | --help ] -A required -A... required; multiple can be specified [ -A ] optional [ -A... ] optional; multiple can be specified { -A | -B } one or the other; do not use both Examples openvpn.sh --detect openvpn.sh --dryrun openvpn.sh --version openvpn.sh --help | -h | /? Flags: -D, --detect lists the detected values for ethernet adapter, tunnel, and public ip -r, --restart restart csf and lfd services -f, --flush flush all iptable rules from server -d, --dryrun simulates installation, does not install csf false -v, --version current version of this utilty 15.0.9 -h, --help show this help menu ``` -------------------------------- ### Run csftest.pl after installation Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md Re-run the diagnostic tests at any time after installation using the installed script path. Useful for checking the current status of the CSF installation. ```shell sudo perl /usr/local/csf/bin/csftest.pl ``` -------------------------------- ### Verify ipset installation with version command Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/usage/ipset.md Run this command to check that ipset is installed and display its version. Successful output shows the version and protocol version. ```shell sudo ipset -v ``` -------------------------------- ### Install Perl modules via CPAN Source: https://github.com/aetherinox/csf-firewall/blob/main/src/install.txt Installs required Perl modules interactively via CPAN shell. ```bash perl -MCPAN -eshell cpan> install LWP LWP::Protocol::https GD::Graph ``` -------------------------------- ### InterWorx Installation Complete Output Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Output shown after InterWorx installation completes, providing the URL and command for license activation. ```shell -=-=-=-=-= Installation Complete! Next Step: License Activation! =-=-=-=-=- To activate your license, go to https://your-ip:2443/nodeworx/ or run: ~iworx/bin/goiworx.pex Also, check out https://www.interworx.com for news, updates, and support! -=-=-=-=-= THANK YOU FOR USING INTERWORX! =-=-=-=-=- ``` -------------------------------- ### Install Dependencies on Debian 13 Source: https://github.com/aetherinox/csf-firewall/blob/main/README.md Run these commands to install required packages for CSF on Debian 13 systems. ```shell sudo apt-get update && sudo apt-get install -y \ ipset \ libwww-perl \ libcrypt-ssleay-perl \ libio-socket-inet6-perl \ libio-socket-ssl-perl \ libnet-libidn-perl \ libsocket6-perl \ postfix \ perl \ wget ``` -------------------------------- ### Install Perl modules on RPM-based systems Source: https://github.com/aetherinox/csf-firewall/blob/main/src/install.txt Installs required Perl modules using yum on RPM-based systems. ```bash yum install perl-libwww-perl.noarch perl-LWP-Protocol-https.noarch perl-GDGraph perl-Math-BigInt.noarch ``` -------------------------------- ### Install CSF from tarball Source: https://github.com/aetherinox/csf-firewall/blob/main/src/install.txt Downloads and installs the CSF firewall from the official repository. Run these commands as root from /usr/src. ```bash cd /usr/src rm -fv csf.tgz wget https://download.configserver.dev/csf.tgz tar -xzf csf.tgz cd csf sh install.sh ``` -------------------------------- ### Check ServerStats perl module installation Source: https://github.com/aetherinox/csf-firewall/blob/main/README.md Verify that the ServerStats perl module is installed by listing the file. The expected output is shown in the comment. ```shell ls -l /usr/local/csf/lib/ConfigServer/ServerStats.pm # Should return: -rw------- 1 root root 138268 Aug 25 08:46 /usr/local/csf/lib/ConfigServer/ServerStats.pm ``` -------------------------------- ### Install sendmail on CentOS/RHEL (yum/dnf) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/dependencies.md Installs sendmail MTA for CSF email alerts on CentOS/RHEL systems. After installation, enable and start the MTA with 'sudo systemctl enable --now sendmail'. ```bash sudo yum makecache && sudo yum install -y sendmail ``` -------------------------------- ### Install sendmail on Debian/Ubuntu (apt-get) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/dependencies.md Installs sendmail MTA for CSF email alerts on Debian/Ubuntu systems. After installation, enable and start the MTA with 'sudo systemctl enable --now sendmail'. ```bash sudo apt-get update && sudo apt-get install -y sendmail ``` -------------------------------- ### Start CSF service and reload with systemctl start csf and csf -ra Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/services.md Starts the CSF service and reloads the firewall rules. This is the first step to ensure the CSF service is operating correctly. ```shell sudo systemctl start csf sudo csf -ra ``` -------------------------------- ### Run CSF install.sh with shebang Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Makes the CSF installation script executable and runs it directly. Requires executable (+x) permission. ```bash sudo chmod +x /tmp/csf/install.sh sudo /tmp/csf/install.sh ``` -------------------------------- ### Remove APF and BFD firewall scripts Source: https://github.com/aetherinox/csf-firewall/blob/main/src/install.txt Removes conflicting APF+BFD firewall scripts. Required if they are installed, otherwise they will conflict with CSF. ```bash sh /usr/local/csf/bin/remove_apf_bfd.sh ``` -------------------------------- ### Verify iptables version with iptables -V Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/tests.md Run this command to confirm your iptables installation and version. The expected output is shown in the following console block. ```shell iptables -V ``` -------------------------------- ### Run CSF install.sh with shebang interpreter Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/install/install.md Makes the installation script executable and runs it directly; requires +x permission. ```bash sudo chmod +x /tmp/csf/install.sh sudo /tmp/csf/install.sh ``` -------------------------------- ### Simulate install of existing local folder with --install-only --dryrun Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/services/get.configserver.md Simulates installing CSF from an existing local csf folder without downloading or making changes. ```shell bash <(wget -qO - https://get.configserver.dev) --install-only --dryrun ``` -------------------------------- ### Install and enable sendmail on CentOS/RHEL (yum/dnf) Source: https://github.com/aetherinox/csf-firewall/blob/main/docs/docs/usage/troubleshooting/dependencies.md Install sendmail and sendmail-cf on CentOS/RHEL systems, then enable and start the sendmail service. This resolves the 'Binary location for [SENDMAIL]' warning in /etc/csf/csf.conf. ```shell sudo yum makecache && sudo yum install -y \ sendmail sendmail-cf sudo systemctl enable --now sendmail ```