LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-04-2003, 02:43 PM   #1
jpflager
LQ Newbie
 
Registered: Feb 2003
Posts: 10

Rep: Reputation: 0
syslog startup daemon script


I need to configure my syslog daemon to allow for remote hosts to connect. When I do a netstat -an it seems that I'm not listening on 514.

here is a copy of my sylog daemon, any help is appreciated.

# Options to syslogd
# -m 0 disables 'MARK' messages.
# -r enables logging from remote machines
# -x disables DNS lookups on messages recieved with -r
# See syslogd(8) for more details
SYSLOGD_OPTIONS="-m 0 -r"
# Options to klogd
# -2 prints all kernel oops messages twice; once for klogd to decode, and
# once for processing with 'ksymoops'
# -x disables all klogd processing of oops messages entirely
# See klogd(8) for more details
KLOGD_OPTIONS="-x"
 
Old 03-04-2003, 03:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Right ... did you actually read
Code:
man syslogd
?
In your problem description I can't see anything
about having checked /etc/services...

Or a -h flag ... for that matter:

Quote:
Quoting man syslogd
-h By default syslogd will not forward messages it
receives from remote hosts. Specifying this switch
on the command line will cause the log daemon to
forward any remote messages it receives to forward-
ing hosts which have been defined.
Cheers,
Tink

Last edited by Tinkster; 03-04-2003 at 03:37 PM.
 
Old 03-04-2003, 07:11 PM   #3
jpflager
LQ Newbie
 
Registered: Feb 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I configured the /etc/services to start udp 514, but when I run netstat -an 514 is not in a listening state. I saw your message about -h option, but don't know if applicable here. Your thoughts are appreciated.
 
Old 03-04-2003, 09:20 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,966
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
add -r, too :)

Cheers,
Tink
 
Old 03-04-2003, 10:10 PM   #5
jpflager
LQ Newbie
 
Registered: Feb 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I appoligize for my lack of understanding, but I need to put the -r in the /etc/services as well? If so is it supposed to look like this?

biff 512/udp comsat
login 513/tcp
who 513/udp whod
shell 514/tcp cmd # no passwords used
syslog -r 514/udp
printer 515/tcp spooler # line printer spooler
printer 515/udp spooler # line printer spooler

I understand the need to study the literature, but I haven't seen anything that indicates this, only to put it in the syslogd file? So please bear with me. Thanks for your help!!
 
Old 03-05-2003, 12:12 AM   #6
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Actually the flags look ok. Maybe a stupid question but did you restart syslog after editing the init script?
Also some distros have an /etc/sysconfig/syslog file where option variables are defined for it, did you look at that?
 
Old 03-05-2003, 12:59 PM   #7
jpflager
LQ Newbie
 
Registered: Feb 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Yeah I restarted syslog, and I do have that file location changed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems in running a script as a daemon at startup fahad26 Programming 5 03-07-2012 07:24 AM
reconfigure snort daemon startup script hari_seldon99 Linux - Security 1 05-18-2004 01:40 AM
PIX to linux syslog daemon neoflea Linux - Networking 1 09-10-2003 04:58 PM
how can I get/make a proper squid daemon startup script for boot time binkybuckle Debian 0 07-05-2003 07:58 PM
Syslog Daemon log capturing ascii2k Linux - Networking 1 10-08-2001 01:42 PM


All times are GMT -5. The time now is 04:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration