How can I disable the logging of iptables to the console?

To permanently disable all low level kernel messages (iptables etc) from flooding the console do the following changes (as root):

Edit the file /etc/sysctl.conf Add the following line:

kernel.printk = 4 1 1 7

The above changes will be effective at reboot or immediately using the following command:

/sbin/sysctl -p /etc/sysctl.conf

To make the changes only temporarily:

echo "4 1 1 7" > /proc/sys/kernel/printk

You can check the current setting with:

cat /proc/sys/kernel/printk
  • firewall, logging, console, iptables
  • 12 Users Found This Useful
這篇文章有幫助嗎?

相關文章

How can I raise the open file limit for the login failure daemon?

The login failure daemon can crash if you are monitoring a lot of domains in Plesk and are...

How can I test to make sure that the OS has all the required kernel modules required for Juggernaut Firewall?

Test from the Juggernaut Extension You can run the firewall test by going to Juggernaut Firewall...

How can I adjust the attack triggers used by the login failure daemon?

To Adjust Login Failure Triggers Navigate to Juggernaut Firewall -> Settings -> Login...

Where are the configuration files for Juggernaut Firewall located?

Configuration files are located in the /etc/csf/ directory with the main firewall configuration...

How can I use Juggernaut Firewall to monitor a list of directories?

Enter the Directories You Want To Monitor Navigate to Juggernaut Firewall -> Settings ->...