Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You would need something like that in your FORWARD and OUTPUT chains as well. You might want to add a limit match on that to keep your log files for getting too huge.
You put something like -m limit --limit 3/hour in the logging rule. 3/hour is the default, but do whatever you think is appropriate; other suffices are `/second', `/minute', `/hour', or `/day' (directly from the man page )
This will allow three log messages per minute with a quick burst of 3. In other words, the first minute will log 6 and then 3 from that moment on.
You might think "Hey that is not a lot of log messages, won't I lose out on valuable information?". The limit match should only limit redundant packets. In other words, if you get 1 packet from 500 different machines, you will get 500 log messages even if that is in one minute. If you get one machine probing 500 ports in 1 minute, you should get one LOG from each attempt (for each different port). If you have one machine trying to get at the same port 500 times, you will only see 6 the first minute and then 3 for every minute after that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.