| Suse/Novell This Forum is for the discussion of Suse Linux. |
| 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. |
|
 |
06-09-2008, 09:54 PM
|
#1
|
|
Member
Registered: Dec 2007
Posts: 97
Rep:
|
SUSE 10.3: How to enable logging for network activity and etc
I want to have all network activity going into and out of my SUSE 10.3.
And also sshd sessions, successful and failed authentication and sessions.
Remote Administration too.
This means I should select LOG ALL at yast2 firewall?
Then which log file should I look at? At /var/log?
|
|
|
|
06-11-2008, 08:04 AM
|
#2
|
|
Moderator
Registered: May 2001
Posts: 24,970
|
Quote:
Originally Posted by khaos83
I want to have all network activity going into and out of my SUSE 10.3. And also sshd sessions, successful and failed authentication and sessions. Remote Administration too.
|
I don't use SuSE and I don't know YAST. However basics remain the same: logging "basic" network traffic details only requires iptables -j LOG rules for all chains, and SSH sessions get logged using PAM (/etc/pam.d/ssh.*). "Remote Administration" is just a term and does not refer to a specific method. Ask yourself *how*, or using what means, "remote administration" is done and you'll soon recognise the services, software and authentication methods that are involved.
Quote:
Originally Posted by khaos83
This means I should select LOG ALL at yast2 firewall? Then which log file should I look at? At /var/log?
|
Anything logged through the kernel, unless configured otherwise, will be handled by syslog. So looking at /etc/syslog.conf or equivalent, should show. Services and processes that have their own configuration files may use the Syslog facilities or use their own logfiles. In closing the easiest ways IMHO to see which logfiles in a directory are in use are: 'lsof -w -n +D/var/log|awk '{print $NF}'|sort|uniq' (fast) and 'find /var/log -type f -print0 2>/dev/null|xargs -0 -iL fuser 'L'' (slow).
HTH
|
|
|
|
06-12-2008, 12:53 AM
|
#3
|
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 14, Chakra
Posts: 3,522
Rep: 
|
Quote:
Originally Posted by unSpawn
...Anything logged through the kernel, unless configured otherwise, will be handled by syslog. So looking at /etc/syslog.conf or equivalent, should show. Services and processes that have their own configuration files may use the Syslog facilities or use their own logfiles. ...
|
Hmm. Just curious, but there is ulogd for iptables. Does it work through syslog as well?
|
|
|
|
06-12-2008, 06:40 AM
|
#4
|
|
Moderator
Registered: May 2001
Posts: 24,970
|
Good point mentioning that. And if the docs say it will, then why wouldn't it?
|
|
|
|
06-12-2008, 06:52 AM
|
#5
|
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 14, Chakra
Posts: 3,522
Rep: 
|
Who knows? Do they? The docs I read didn't mention the type of mechanism used by the ulog target to acually write the log. But then, SuSE 10.0 didn't include ulogd, so my research might have stayed too cursory...
|
|
|
|
06-12-2008, 07:30 AM
|
#6
|
|
Moderator
Registered: May 2001
Posts: 24,970
|
Yes they do.
|
|
|
|
06-14-2008, 12:09 AM
|
#7
|
|
Member
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, work = Ubuntu & openSuse
Posts: 273
Rep:
|
Look at /etc/syslog-ng/syslog-ng.conf. It's well commented and references more documentation.
|
|
|
|
06-16-2008, 04:05 AM
|
#8
|
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 12.3_64-KDE, Ubuntu 12.04, Fedora 17, Mint 14, Chakra
Posts: 3,522
Rep: 
|
Thanks for the info to both of you.
|
|
|
|
| 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 09:18 PM.
|
|
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
|
|