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
how to listen on port 514
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
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?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?
/Daniel
Re: how to listen on port 514
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?DanielM wrote: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?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?
/Daniel
hi
add the -r option
Eek
Code: Select all
vi /etc/default/syslogd
restart sysklogdSYSLOGD="-r"
cheers# netstat -an|grep 514
udp 0 0 0.0.0.0:514 0.0.0.0:*
Eek
Thanks. /etc/default/syslogd did not exist, so I created it, and your suggestion worked. I appreciate it.Eek wrote:hiadd the -r optionCode: Select all
vi /etc/default/syslogd
restart sysklogdSYSLOGD="-r"cheers# netstat -an|grep 514
udp 0 0 0.0.0.0:514 0.0.0.0:*
Eek
Thanks. Works like a charm.Eek wrote:add the -r optionSYSLOGD="-r"
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

/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 lineDanielM 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. Anyone knows?
/Daniel
Code: Select all
local7.* /var/log/linksys.log
/Daniel