* syslog
@ 2002-01-30 18:53 SpitsOnSpammers
2002-01-31 11:09 ` syslog Emmanuel Choquet
0 siblings, 1 reply; 11+ messages in thread
From: SpitsOnSpammers @ 2002-01-30 18:53 UTC (permalink / raw)
I'm trying to send data from a SonicWall firewall to the syslog daemon on my
Tru64 600au. According to the SonicWall documentation, all I need to do is put
the IP address of the Tru64 box in the appropriate place in their web GUI, have
a syslog daemon waiting on port 514 for UDP packets and I'm on my way.
Unfortunately this is not the case. The SonicWall appears to see the Tru64
600au fine (checked via ping from the SonicWall) and vice versa (checked using
ping from the 600au). What must I set up on the 600au side to get it to start
accepting data from the SonicWall? I've checked to see that the syslogd daemon
is running on the 600au and it is. And /etc/services seems to indicate that
port 514 is set to syslog and UDP packets. Any pointers? Thanks in advance.
-----------------------------
POSTING TO THIS NEWSGROUP IS THE ONLY WAY TO REACH ME: THIS ACCOUNT REJECTS
ALL EMAIL. SPAMMERS CAN HARVEST AWAY AND BE DAMNED!!!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog
2002-01-30 18:53 syslog SpitsOnSpammers
@ 2002-01-31 11:09 ` Emmanuel Choquet
2002-01-31 20:30 ` syslog SpitsOnSpammers
0 siblings, 1 reply; 11+ messages in thread
From: Emmanuel Choquet @ 2002-01-31 11:09 UTC (permalink / raw)
spammerspitter@aol.com.invalid (SpitsOnSpammers) wrote in message news:<20020130135343.23206.00000318@mb-mq.aol.com>...
> I'm trying to send data from a SonicWall firewall to the syslog daemon on my
> Tru64 600au. According to the SonicWall documentation, all I need to do is put
> the IP address of the Tru64 box in the appropriate place in their web GUI, have
> a syslog daemon waiting on port 514 for UDP packets and I'm on my way.
> Unfortunately this is not the case. The SonicWall appears to see the Tru64
> 600au fine (checked via ping from the SonicWall) and vice versa (checked using
> ping from the 600au). What must I set up on the 600au side to get it to start
> accepting data from the SonicWall? I've checked to see that the syslogd daemon
> is running on the 600au and it is. And /etc/services seems to indicate that
> port 514 is set to syslog and UDP packets. Any pointers? Thanks in advance.
>
>
> -----------------------------
> POSTING TO THIS NEWSGROUP IS THE ONLY WAY TO REACH ME: THIS ACCOUNT REJECTS
> ALL EMAIL. SPAMMERS CAN HARVEST AWAY AND BE DAMNED!!!
man syslog.auth should help
Cheers
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog
2002-01-31 11:09 ` syslog Emmanuel Choquet
@ 2002-01-31 20:30 ` SpitsOnSpammers
2002-01-31 20:45 ` syslog Tim Mooney
2002-01-31 21:03 ` syslog Michael Heiming
0 siblings, 2 replies; 11+ messages in thread
From: SpitsOnSpammers @ 2002-01-31 20:30 UTC (permalink / raw)
>man syslog.auth should help
>
>Cheer
Already read that. It says that if /etc/syslog.auth doesn't exist (and it
doesn't since I'm in a protected LAN behind a firewall so I don't have to worry
about anything but my machines sending stuff to my syslog server), then
messages from ANY remote host will be accepted. But my log files in
/var/adm/syslog.dated/current don't show receipt of any messages other than
what my 600au generates (which are only few and far between). And
/var/adm/syslog is empty, too (not surprising since /etc/syslog.conf is set to
send log messages to /var/adm/syslog.dated). The SonicWall firewall is
configured to dump everything including the kitchen sink to the sylog server.
I assume that syslog messages from the firewall are going to be classified as
coming from the user facility and the user facility is already set by default
to log anything that is "debug" priority and above. But then all facilities
are also set to log anything that is of "debug" priority and above. Are there
any other files I should be configuring since syslog.auth is nonexistent and
unnecessary in my situation and syslog.conf seems to be correctly set?
-----------------------------
POSTING TO THIS NEWSGROUP IS THE ONLY WAY TO REACH ME: THIS ACCOUNT REJECTS
ALL EMAIL. SPAMMERS CAN HARVEST AWAY AND BE DAMNED!!!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog
2002-01-31 20:30 ` syslog SpitsOnSpammers
@ 2002-01-31 20:45 ` Tim Mooney
2002-01-31 22:27 ` syslog SpitsOnSpammers
2002-01-31 23:08 ` syslog SpitsOnSpammers
2002-01-31 21:03 ` syslog Michael Heiming
1 sibling, 2 replies; 11+ messages in thread
From: Tim Mooney @ 2002-01-31 20:45 UTC (permalink / raw)
In article <20020131153016.29451.00000033@mb-fo.aol.com>,
SpitsOnSpammers <spammerspitter@aol.com.invalid> wrote:
> >man syslog.auth should help
> >
> >Cheer
>
> Already read that. It says that if /etc/syslog.auth doesn't exist (and it
> doesn't since I'm in a protected LAN behind a firewall so I don't have to
> worry about anything but my machines sending stuff to my syslog server), then
> messages from ANY remote host will be accepted.
I don't remember for sure, but I think the man page is wrong (the file must
exist and the host must be listed, or it's denied).
You can find out for sure by doing a
/sbin/init.d/syslog stop
and then running
/usr/sbin/syslogd -d
to run it in debugging mode. Then try sending messages to it from the
firewall, or using `logger' from some other UNIX host.
BTW, in 3.x and some of 4.x, there was a bug in the start/stop script
for syslog -- if you ran the stop it would only stop syslog, whereas if
you ran the start it would start both syslog and binlog. This means that
if you stop it manually and then later restart it using the script, you'll
end up with two copies of binlogd running. Just kill one.
In any case, once you have syslog running in debug mode, it will tell you
if it even sees anything come in via the log socket.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog
2002-01-31 20:30 ` syslog SpitsOnSpammers
2002-01-31 20:45 ` syslog Tim Mooney
@ 2002-01-31 21:03 ` Michael Heiming
1 sibling, 0 replies; 11+ messages in thread
From: Michael Heiming @ 2002-01-31 21:03 UTC (permalink / raw)
SpitsOnSpammers(spammerspitter@aol.com.invalid -
<20020131153016.29451.00000033@mb-fo.aol.com>) wrote at Thursday 31
January 2002 21:30:
>>man syslog.auth should help
>>
>>Cheer
>
> Already read that. It says that if /etc/syslog.auth doesn't exist
> (and it doesn't since I'm in a protected LAN behind a firewall so I
> don't have to worry about anything but my machines sending stuff to
> my syslog server), then
> messages from ANY remote host will be accepted.
Strange, 'man syslogd' tells the opposite, looks as if there's one
man page broken, guess which...
Michael Heiming
--
Remove the +SIGNS case mail bounces.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog
2002-01-31 20:45 ` syslog Tim Mooney
@ 2002-01-31 22:27 ` SpitsOnSpammers
2002-02-01 9:17 ` syslog Emmanuel Choquet
2002-01-31 23:08 ` syslog SpitsOnSpammers
1 sibling, 1 reply; 11+ messages in thread
From: SpitsOnSpammers @ 2002-01-31 22:27 UTC (permalink / raw)
>I don't remember for sure, but I think the man page is wrong (the file must
>exist and the host must be listed, or it's denied).
Interesting. I'm doing as you suggested (running syslogd with the -d switch)
and one of the lines in there was "The file /etc/syslog.auth is non-empty,
nhosts = 1" AFTER I made an entry in /etc/syslog.auth for the firewall. This
would seem to mean that it would detect an empty syslog.auth file. And this is
proven when I deleted the file and reran syslogd with the -d switch. It
generated the following line: "The /etc/syslog.auth file does not exist.
Messages from all remote hosts will be accepted."
Then, without a syslog.auth file, I pinged my firewall from a remote Unix host
to trigger a log message (my firewall is configured to blackhole ICMP packets
but report the attempts) while syslogd was running with the -d switch and got
lots of these:
got a message (1, 0x10)
cvthname() - IP address of source host is 192.168.1.1
cvthname() - return full host name cerberus-lan.<dest domain name>
Allowing remote forwarding from any host configured, source host is
cerberus-lan.<dest domain name>
cvthname() - IP address of source host is 192.168.1.1
cvthname() - return short host name cerberus-lan
logmsg: pri 205, flags 0, from cerberus-lan, msg id=firewall sn=11523503
time="2002-01-31 17:04:16" fw=<dest IP> pri=5 c=256 m=38 msg="ICMP packet
dropped" n=7 src=<src IP>:8:WAN dst=<dest IP>:8:WAN rule=0^M
I only cropped out the domain names and IP addresses but I assume from the
above that the priority is 5 (which maps to an "notice" priority according to
/usr/include/sys/syslog_pri.h and thus should be logged since I have specified
that anything above "debug" is to be considered). How can I tell from the
above log message what the facility is? Maybe syslogd thinks that the above
message is not coming from the "user" facility and is thus ignoring it? If so,
what facility does it think the log message is coming from?
-----------------------------
POSTING TO THIS NEWSGROUP IS THE ONLY WAY TO REACH ME: THIS ACCOUNT REJECTS
ALL EMAIL. SPAMMERS CAN HARVEST AWAY AND BE DAMNED!!!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog
2002-01-31 20:45 ` syslog Tim Mooney
2002-01-31 22:27 ` syslog SpitsOnSpammers
@ 2002-01-31 23:08 ` SpitsOnSpammers
2002-02-06 16:00 ` syslog Richard Brust
1 sibling, 1 reply; 11+ messages in thread
From: SpitsOnSpammers @ 2002-01-31 23:08 UTC (permalink / raw)
Here's something very interesting:
While browsing through /usr/include/sys/syslog_pri.h, I noticed the local0
through local7 facilities. So I created entries for them in my
/etc/syslog.conf, mapping each facility to a log file of their own. Then I
restarted syslogd with a SIGHUP. Lo and behold, log messages from my firewall
began appearing in my local0.log file while local1.log through local7.log
remained blank. This brings me to my next question: How are log messages
assigned to the local0 through local7 facilities? If I had multiple devices
all sending messages to my 600au, would they all be stuck in local0.log? What
if I want log messages from each device to go to separate log files? How do I
do that? This doesn't seem to be covered at all in any of the syslog* man
pages. Thanks in advance.
-----------------------------
POSTING TO THIS NEWSGROUP IS THE ONLY WAY TO REACH ME: THIS ACCOUNT REJECTS
ALL EMAIL. SPAMMERS CAN HARVEST AWAY AND BE DAMNED!!!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog
2002-01-31 22:27 ` syslog SpitsOnSpammers
@ 2002-02-01 9:17 ` Emmanuel Choquet
2002-02-01 17:06 ` syslog SpitsOnSpammers
0 siblings, 1 reply; 11+ messages in thread
From: Emmanuel Choquet @ 2002-02-01 9:17 UTC (permalink / raw)
Do you get any messages concerning the access tentative to syslog in
/var/adm/syslog.dated/current/daemon.log ?
I think you should have some messages in there, at least if the syslog
access from your equipment reach TRU64 and is rejected.
spammerspitter@aol.com.invalid (SpitsOnSpammers) wrote in message news:<20020131172739.04360.00000127@mb-mq.aol.com>...
> >I don't remember for sure, but I think the man page is wrong (the file must
> >exist and the host must be listed, or it's denied).
>
> Interesting. I'm doing as you suggested (running syslogd with the -d switch)
> and one of the lines in there was "The file /etc/syslog.auth is non-empty,
> nhosts = 1" AFTER I made an entry in /etc/syslog.auth for the firewall. This
> would seem to mean that it would detect an empty syslog.auth file. And this is
> proven when I deleted the file and reran syslogd with the -d switch. It
> generated the following line: "The /etc/syslog.auth file does not exist.
> Messages from all remote hosts will be accepted."
>
> Then, without a syslog.auth file, I pinged my firewall from a remote Unix host
> to trigger a log message (my firewall is configured to blackhole ICMP packets
> but report the attempts) while syslogd was running with the -d switch and got
> lots of these:
>
> got a message (1, 0x10)
> cvthname() - IP address of source host is 192.168.1.1
> cvthname() - return full host name cerberus-lan.<dest domain name>
> Allowing remote forwarding from any host configured, source host is
> cerberus-lan.<dest domain name>
> cvthname() - IP address of source host is 192.168.1.1
> cvthname() - return short host name cerberus-lan
> logmsg: pri 205, flags 0, from cerberus-lan, msg id=firewall sn=11523503
> time="2002-01-31 17:04:16" fw=<dest IP> pri=5 c=256 m=38 msg="ICMP packet
> dropped" n=7 src=<src IP>:8:WAN dst=<dest IP>:8:WAN rule=0^M
>
> I only cropped out the domain names and IP addresses but I assume from the
> above that the priority is 5 (which maps to an "notice" priority according to
> /usr/include/sys/syslog_pri.h and thus should be logged since I have specified
> that anything above "debug" is to be considered). How can I tell from the
> above log message what the facility is? Maybe syslogd thinks that the above
> message is not coming from the "user" facility and is thus ignoring it? If so,
> what facility does it think the log message is coming from?
>
> -----------------------------
> POSTING TO THIS NEWSGROUP IS THE ONLY WAY TO REACH ME: THIS ACCOUNT REJECTS
> ALL EMAIL. SPAMMERS CAN HARVEST AWAY AND BE DAMNED!!!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog
2002-02-01 9:17 ` syslog Emmanuel Choquet
@ 2002-02-01 17:06 ` SpitsOnSpammers
0 siblings, 0 replies; 11+ messages in thread
From: SpitsOnSpammers @ 2002-02-01 17:06 UTC (permalink / raw)
>Do you get any messages concerning the access tentative to syslog in
>/var/adm/syslog.dated/current/daemon.log ?
>
>I think you should have some messages in there, at least if the syslog
>access from your equipment reach TRU64 and is rejected.
Thanks for the reply. No, I've not got any rejection messages. I've since
found that syslog assumed that the firewall was sending as the local0 facility
and since the default syslog.conf file didn't include information on how to
deal with the local0 to local7 facilities, it was ignoring the messages.
-----------------------------
POSTING TO THIS NEWSGROUP IS THE ONLY WAY TO REACH ME: THIS ACCOUNT REJECTS
ALL EMAIL. SPAMMERS CAN HARVEST AWAY AND BE DAMNED!!!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog
2002-01-31 23:08 ` syslog SpitsOnSpammers
@ 2002-02-06 16:00 ` Richard Brust
2002-02-08 19:33 ` syslog SpitsOnSpammers
0 siblings, 1 reply; 11+ messages in thread
From: Richard Brust @ 2002-02-06 16:00 UTC (permalink / raw)
Yo, after a few weeks of messing around with syslog.conf, I finally
got the SonicWall to accurately remotely log on my Linux machine. You
are correct that the SW used the local0 facility. Something I later
found out that you might be interested in is that each
vendor/service/application, when written, can be specified to utilize
local0-local7. SW, evidentially, either specified local0, or, more
likely, did not specify anything, which then defaulted to local0.
So, you next question regarding multiple devices sending to the 600au
depends on each "item" that will be sending data - did the
app/vendor/service specify a facility, or will they all default to
local0, which could be messy.
spammerspitter@aol.com.invalid (SpitsOnSpammers) wrote in message news:<20020131180815.23222.00000762@mb-mq.aol.com>...
> Here's something very interesting:
>
> While browsing through /usr/include/sys/syslog_pri.h, I noticed the local0
> through local7 facilities. So I created entries for them in my
> /etc/syslog.conf, mapping each facility to a log file of their own. Then I
> restarted syslogd with a SIGHUP. Lo and behold, log messages from my firewall
> began appearing in my local0.log file while local1.log through local7.log
> remained blank. This brings me to my next question: How are log messages
> assigned to the local0 through local7 facilities? If I had multiple devices
> all sending messages to my 600au, would they all be stuck in local0.log? What
> if I want log messages from each device to go to separate log files? How do I
> do that? This doesn't seem to be covered at all in any of the syslog* man
> pages. Thanks in advance.
>
> -----------------------------
> POSTING TO THIS NEWSGROUP IS THE ONLY WAY TO REACH ME: THIS ACCOUNT REJECTS
> ALL EMAIL. SPAMMERS CAN HARVEST AWAY AND BE DAMNED!!!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog
2002-02-06 16:00 ` syslog Richard Brust
@ 2002-02-08 19:33 ` SpitsOnSpammers
0 siblings, 0 replies; 11+ messages in thread
From: SpitsOnSpammers @ 2002-02-08 19:33 UTC (permalink / raw)
>Yo, after a few weeks of messing around with syslog.conf, I finally
>got the SonicWall to accurately remotely log on my Linux machine. You
>are correct that the SW used the local0 facility. Something I later
>found out that you might be interested in is that each
>vendor/service/application, when written, can be specified to utilize
>local0-local7. SW, evidentially, either specified local0, or, more
>likely, did not specify anything, which then defaulted to local0.
>
>So, you next question regarding multiple devices sending to the 600au
>depends on each "item" that will be sending data - did the
>app/vendor/service specify a facility, or will they all default to
>local0, which could be messy.
Thanks for the info. I think most vendors don't really specify because there
is no guarantee that there are local0 to local7 log facilities. As you said,
this is messy.
-----------------------------
POSTING TO THIS NEWSGROUP IS THE ONLY WAY TO REACH ME: THIS ACCOUNT REJECTS
ALL EMAIL. SPAMMERS CAN HARVEST AWAY AND BE DAMNED!!!
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2002-02-08 19:33 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-30 18:53 syslog SpitsOnSpammers
2002-01-31 11:09 ` syslog Emmanuel Choquet
2002-01-31 20:30 ` syslog SpitsOnSpammers
2002-01-31 20:45 ` syslog Tim Mooney
2002-01-31 22:27 ` syslog SpitsOnSpammers
2002-02-01 9:17 ` syslog Emmanuel Choquet
2002-02-01 17:06 ` syslog SpitsOnSpammers
2002-01-31 23:08 ` syslog SpitsOnSpammers
2002-02-06 16:00 ` syslog Richard Brust
2002-02-08 19:33 ` syslog SpitsOnSpammers
2002-01-31 21:03 ` syslog Michael Heiming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox