Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-25-2004, 12:39 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2004
Posts: 4
Rep:
|
How to setup a syslog server
I am having a D-Link DFL-500 hardware firewall. I have an option like to log all the activities to a syslog server in it. So I want to setup a syslog server in Fedora Core 2 and to log all the activities of the firewall.
Plz guide me to setup a syslog server.
|
|
|
|
12-25-2004, 03:40 AM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Rep:
|
Your FC2 most certainly already has a system logger installed. All you need to do is set it up to accept connections from the firewall.
This step is dependant on which logger you use. To see which one try:
Code:
# rpm -qa | grep syslog
The two most popular are the newer syslog-ng and the older but trusty syslogd. Once you find this out I can probably help you out more.
|
|
|
|
12-26-2004, 10:17 PM
|
#3
|
|
LQ Newbie
Registered: Dec 2004
Posts: 4
Original Poster
Rep:
|
Sir, I am having sysklogd
#rpm -qa sysklogd
sysklogd-1.4.1-16
This includes the syslogd daemon. Plz guide me on how to setup a syslog for DLINK firewall
|
|
|
|
12-26-2004, 10:29 PM
|
#4
|
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Rep:
|
Ok, the only thing you have to do is restart syslogd with the '-r' command line switch. You will need to edit syslog's startup script (in /etc/rc.d or /etc/init.d) to make this permanent. Now syslogd will be listening on UDP port 514.
Here is a link to help:
http://freebooks.by.ru/view/LinuxNet...htm#Heading327
As for configuring the dlink, I cannot help..read the docs and make it log to your box on port 514
HTH.
|
|
|
|
12-26-2004, 10:40 PM
|
#5
|
|
LQ Newbie
Registered: Dec 2004
Posts: 4
Original Poster
Rep:
|
Thank you sir, I will try this and come back to you, if I am having any problem
|
|
|
|
12-26-2004, 10:50 PM
|
#6
|
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Rep:
|
No prob, and please, no need to call me "sir", as I am still too young and foolish to deserve such a title 
|
|
|
|
12-28-2004, 12:03 AM
|
#7
|
|
LQ Newbie
Registered: Dec 2004
Posts: 4
Original Poster
Rep:
|
I had setup my D-Link to log to my syslog server.
It is sending messages, but all the messages goes into /var/log/messages. The following is one of a log made by D-Link.
============================================================
Dec 28 11:33:40 192.168.100.5 type=mgmt, msg="Log&Report setting set successful at 192.168.100.1 by admin"
============================================================
Is it possible to make the logging to some other file such as to log all the log comming from D-Link to /var/log/dlink.
|
|
|
|
12-28-2004, 12:30 AM
|
#8
|
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Rep:
|
I am sorry, but I don't think you can with syslogd, but I may be wrong. There doesn't seem to be a facility for seperating messages from your dlink. Have a good look at man 5 syslog.conf to be sure...
You can do this however, with syslog-ng
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:46 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|