Page 1 of 1

how to listen on port 514

Posted: 08 May 2008, 22:09
by dannemil
I would like to use bubba as a syslog server. I have changed the correct config file, but syslog is set by default to listen on port 514. After I restart sysklogd and run a netstat -an, port 514 does not show up. Iptable does not seem to be an option here. How do I open port 514?

Re: how to listen on port 514

Posted: 09 May 2008, 02:40
by DanielM
dannemil wrote:I would like to use bubba as a syslog server. I have changed the correct config file, but syslog is set by default to listen on port 514. After I restart sysklogd and run a netstat -an, port 514 does not show up. Iptable does not seem to be an option here. How do I open port 514?
This is a very good question! I have a Linksys router, which has an option to save it's log onto a syslog server, but the documentation says nothing about which port it uses. I tried pointing out my Bubba, but I get nothing in the Bubba logs. Anyone knows?

/Daniel

Re: how to listen on port 514

Posted: 09 May 2008, 07:21
by dannemil
DanielM wrote:
dannemil wrote:I would like to use bubba as a syslog server. I have changed the correct config file, but syslog is set by default to listen on port 514. After I restart sysklogd and run a netstat -an, port 514 does not show up. Iptable does not seem to be an option here. How do I open port 514?
This is a very good question! I have a Linksys router, which has an option to save it's log onto a syslog server, but the documentation says nothing about which port it uses. I tried pointing out my Bubba, but I get nothing in the Bubba logs. Anyone knows?

/Daniel
In Linux devices, by default, the syslog daemon occupies the port 514. Normally on a linux device you would issue an iptables command to open that port, but as I understand it, iptables is not running on the bubba. Is there a native firewall on the bubba, and if so, how do you access it to open and close ports?

Posted: 09 May 2008, 09:25
by Eek
hi

Code: Select all

vi /etc/default/syslogd
add the -r option
SYSLOGD="-r"
restart sysklogd
# netstat -an|grep 514
udp 0 0 0.0.0.0:514 0.0.0.0:*
cheers
Eek

Posted: 09 May 2008, 09:55
by dannemil
Eek wrote:hi

Code: Select all

vi /etc/default/syslogd
add the -r option
SYSLOGD="-r"
restart sysklogd
# netstat -an|grep 514
udp 0 0 0.0.0.0:514 0.0.0.0:*
cheers
Eek
Thanks. /etc/default/syslogd did not exist, so I created it, and your suggestion worked. I appreciate it.

Posted: 10 May 2008, 00:56
by DanielM
Eek wrote:add the -r option
SYSLOGD="-r"
Thanks. Works like a charm.

Another question arises. I would like to get all log lines from my router sorted into a specific file (like /var/log/linksys). I've been reading the syslog.conf manpage on how to achive this, but after the reading I still don't have a clue about how to do it :oops: . Anyone knows?

/Daniel

Posted: 10 May 2008, 01:30
by DanielM
DanielM wrote:Another question arises. I would like to get all log lines from my router sorted into a specific file (like /var/log/linksys). I've been reading the syslog.conf manpage on how to achive this, but after the reading I still don't have a clue about how to do it :oops: . Anyone knows?

/Daniel
Ok. Think I solved this myself. After a while of googling I found out that routers from Cisco and Linksys use the local7 facility for their logs. Thus adding the line

Code: Select all

local7.* /var/log/linksys.log
to my syslog.conf seems to have done the trick...

/Daniel