Re: Per rule/interface logging
Phil Whineray <[email protected]> Sat, 12 Nov 2016 22:48:40 +0000
| Newsgroups | gmane.comp.security.firewalls.firehol.user |
|---|---|
| Message-ID | <20161112224840.soxuor7dwthlp73f@xps> |
On Sun, Nov 13, 2016 at 12:32:16AM +0200, Paul Roland wrote: > I see, thank you for the information. I will look into ulogd how to > shape the log. > Meanwhile, could you please give me an example of an rule that drop > but does not log. I can turn un logging anytime but for that interface > it is not needed at all No rules log, unless you add the keyword them to, so overall the solution would look something like this: interface myif eth0 client all accept server ssh accept server anystateless nolog drop # Logging happens implicitly for any packet that gets here in the # rules (none ever will now) #next_interface_or_router I used the anystateless service because it makes slightly less rules in the generated table than "all" or "any" but it looks a little odd because it demands an extra parameter to give it a name: https://firehol.org/firehol-manual/firehol-services/#service-anystateless Cheers Phil _______________________________________________ Firehol-support mailing list [email protected] http://lists.firehol.org/mailman/listinfo/firehol-support