Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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"
?
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.
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.
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!!
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.