Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

how to listen on port 514

Got problems with Bubba? Then this forum is for you.
Locked
dannemil
Posts: 3
Joined: 08 May 2008, 07:28

how to listen on port 514

Post 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?
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Re: how to listen on port 514

Post 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
dannemil
Posts: 3
Joined: 08 May 2008, 07:28

Re: how to listen on port 514

Post 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?
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post 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
dannemil
Posts: 3
Joined: 08 May 2008, 07:28

Post 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.
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Post 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
DanielM
Posts: 637
Joined: 28 Mar 2008, 06:37
Location: Sweden

Post 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
Locked