• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Again firewall question

Hm, that means I have to create the entries for logging myself and add it in the created script myself after activating it and execute it again?
 
Yes, I suppose you could do that. Make a backup of your changes though.

May I ask what's the use case? Why do you need logging? To debug a new rule?
 
Thx. Of course I would backup my changes ;)

And of yourse you may ask. That's the meaning of a Forum. I have 2 main ideas here. First of all you're right I would like to see if a (new) rule is being hit and the second is to probably analyse attack-patterns.
 
and the second is to probably analyse attack-patterns.

That thought also crossed my mind. You mean detecting stuff like port probing? Because in case of various types of DoS relying on heavy traffic having tons of log records to write may be quite harmful.
 
There are certainly options that would let you limit the rate of logging in a LOG rule. For example in ASL we have blacklist rulesets with LOG rules at the bottom that fire at 10 in 1 minute, and a limit burst of 2. A limit for a TOR blacklist looks like this:

-A ASL-TOR-DROP-LOG -m limit --limit 10/minute --limit-burst 2 -j LOG --log-level info --log-prefix "ASL_TOR_BLOCK " --log-tcp-sequence --log-tcp-options --log-ip-options

This way you will log the event with its own syslog prefix, and limit the total number of log messages to no more than 2 events in 1 minute.
 
Back
Top