Category: Cybersecurity

  • Where Are iptables-persistent/iptables-services Rules Files Located in cPanel/WHM?

    Location of IPv4 file: /etc/sysconfig/iptables

    Location of IPv6 file: /etc/sysconfig/ip6tables

    Linux Command to Access Them Directly

    1. In the terminal,
    2. Type (or paste) vi /etc/sysconfig/ip6tables for IPv6 file, or
    3. vi /etc/sysconfig/iptables for IPv4 file

    Linux Command to Get to Directory

    1. In the terminal,
    2. Type (or paste) cd /etc/sysconfig to navigate to the sysconfig directory, or
    3. ls /etc/sysconfig to list items in the sysconfig directory.