2015-03-02 16:30 GMT+01:00 Ansgar Puester <[email protected]>:

> Hello,
>
> when using the -w command line option your receive the
> following error message
>
> rsyslogd: the -w command line option will go away soon.
> Please use the global(net.permitWarning="off") configuration parameter
> instead.
>
> tools/rsyslogd.c should be corrected
> 1215 old
> "soon.\nPlease use the global(net.permitWarning=\"off\") "
> 1215 new
> "soon.\nPlease use the global(net.permitACLWarning=\"off\") "
>
> When trying
>         global(net.permitACLWarning="off")
> and setting
>         $AllowedSender UDP, 127.0.0.1
>         $AllowedSender TCP, 127.0.0.1
> I still get messages like
>  rsyslogd-2063:TCP message from disallowed sender eisnodev.ap.de discarded
> or
>  rsyslogd:UDP message from disallowed sender discarded
> from sender with IP 192.168.1.53
>
> runtime/glbl.c confuses me
> 157 { "net.permitACLwarning", eCmdHdlrBinary, 0 },
> but
> 1098 } else if(!strcmp(paramblk.descr[i].name, "net.permitwarning")) {
>
> Looks like net.permitACLwarning is never set.
> Debug output is always
>         main thread    : net.permitACLwarning: 0
>
> But even after trying to fix the strcmp bug and debug output tells me
>

This sounds right. Did you use lower case or mixed case? At this point, it
must be lower case. This is because param names are case-insensitive, and
during config reading they are converted to lower case.

Ah... and I see that's the problem with the param table (line 157), too. It
also must be lower case.

Please let me know if that fixes the issue. If it works, feel free to send
a PR or let me know if I should do the patch.

Thanks,
Rainer

>         main thread    : net.permitACLwarning: 1
> I still get disallowed sender messages.
> Probably I'm on a complete wrong way.
>
> Could you please check the implementation of
>         net.permitACLWarning
> or give me a hint?
>
> Thanks in advance
> Ansgar
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to