Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jan 2000 10:40:34 -0500 (EST)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        julian.dunn@Matrox.COM (Julian C. Dunn)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: can't get syslogd to accept remote datagrams
Message-ID:  <200001071540.KAA23276@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <XFMail.20000107094648.julian.dunn@matrox.com> from "Julian C. Dunn" at "Jan 7, 2000 09:46:48 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Julian C. Dunn wrote,
> I can't get syslogd to accept remote messages when I restrict authorized hosts
> with the "-a" switch. I really only have one host from which I need to log
> datagrams, which has an IP of 192.168.5.5. I tried the following:
> 
> syslogd -a 192.168.5.5/255.255.255.0
> syslogd -a 192.168.5.0/255.255.255.0
> syslogd -a 192.168.5.255/255.255.255.0
> 
> and I turned on UDP-log-in-vain using sysctl, so all I get is
> 
> Jan  6 21:53:53 aquarius /kernel: Connection attempt to UDP 192.168.5.6:514
> from 192.168.5.5:514
> Jan  6 21:53:53 aquarius last message repeated 6 times
> 
> and the like. Can anyone help? Am I mis-interpreting the mask? I already tried
> 0.0.0.255 as the mask, but then, while I don't get any log-in-vain messages, I
> get nothing in /var/log/messages when a datagram is sent from the remote
> machine.

% man syslogd
             .
             .
             .
             ipaddr/masklen[:service]    Accept datagrams from ipaddr (in the
                                         usual dotted quad notation) with
                                         masklen bits being taken into account
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                         when doing the address comparision.
             .
             .
             .

To get the effect of masking to a class C, you would want,

# syslogd -a 192.168.5.0/24

However, if you simply did,

# syslogd -a 192.168.5.0

It should work since the manpage continues,


                                                                          A
                                         missing masklen will be substituted
                                         by the historic class A or class B
                                         netmasks if ipaddr belongs into the
                                         address range of class A or B, re-
                                         spectively, or by 24 otherwise.

And 192.168.5.0 is a historic class C.

...At least this is what the docs say; I've never used the syslogd
disk-filling utility over a network.
-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001071540.KAA23276>