Re: Invalid log level (NFLOG(7,-,))
Tom Eastep <[email protected]>
| Newsgroups | gmane.comp.security.shorewall |
|---|---|
| Message-ID | <[email protected]> |
On 2/1/22 15:22, Wayne S wrote:
> I have defined in params
> LOGINFO="NFLOG(7,,)"
>
> In shorewall.config I have
> LOG_LEVEL="$LOGINFO"
>
> ulogd2.service is running just fine with group 7:
>
> ulogd[924]: building new pluginstance stack: 'log7:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu7:LOGEMU'
>
> But checking shorewall I get:
>
> Checking using Shorewall 5.2.3.4...
> Processing /etc/shorewall/params ...
> Processing /etc/shorewall/shorewall.conf...
> Loading Modules...
> Checking /etc/shorewall/zones...
> Checking /etc/shorewall/interfaces...
> Checking /etc/shorewall/hosts...
> Determining Hosts in Zones...
> Locating Action Files...
> ERROR: Invalid log level (NFLOG(7,-,)) /usr/share/shorewall/actions.std (EOF)
>
> If I change this line in shorewall.config, by removing :$LOG_LEVEL:
>
> BLACKLIST_DEFAULT="Broadcast(DROP),Multicast(DROP),dropNotSyn:$LOG_LEVEL,dropInvalid:$LOG_LEVEL,DropDNSrep:$LOG_LEVEL"
>
> to
>
> BLACKLIST_DEFAULT="Broadcast(DROP),Multicast(DROP),dropNotSyn,dropInvalid,DropDNSrep"
>
> Shorewall runs just fine. $LOG_LEVEL is used elsewhere with no problems.
>
> Is this an issue with my configuration or with shorewall?
>
It's a Shorewall quirk that you can work around by changing your params
entry to:
LOGINFO="NFLOG(7)"
-Tom
--
Tom Eastep \ Q: What do you get when you cross a mobster
Shoreline, \ with an international standard?
Washington, USA \ A: Someone who makes you an offer you
http://shorewall.org \ can't understand
\________________________________________
OpenPGP_signature
(application/pgp-signature, 840 B) - not displayed