- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ipfilter won't log via syslog
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2003 06:26 PM
08-08-2003 06:26 PM
Hi, sorry to cross post. (Is there a better way than just including the link above?)
I recently upgraded a K100 from HP-UX 10.20 to 11i and I am thrilled with the availability of Bastille and IPFilter. Thanks HP!
I've installed both and both are generally working well.
However, I cannot get ipfilter to log via syslog.
ipmon -sD is running
and, I can see ipf rejecting and loging packets when I run ipmon with no parms (output to stdout.)
But I just can't seem to get it to log via syslog. I'd really like to do that because syslog.conf on the system is already setup to log *.info to a log host.
Any help would be much appreciated!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2003 04:18 PM
08-09-2003 04:18 PM
Re: ipfilter won't log via syslog
Can you show us your /etc/syslog.conf?
ipmon uses LOG_INFO, LOG_NOTICE, LOG_WARNING, and LOG_ERR levels to log different actions/packets through syslog using the local0 facility.
Check out those lines in your syslog.conf that sends to /dev/console or root.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2003 09:00 PM
08-10-2003 09:00 PM
Re: ipfilter won't log via syslog
Are you sure that you used "
E.g.
local4.debug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2003 09:39 AM
08-11-2003 09:39 AM
Re: ipfilter won't log via syslog
[newkf_root]$cat /etc/syslog.conf
# @(#) $Revision: 74.1 $
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
#
#log to a remote host
*.info @watcher
[watcher and its FQDN are specified in /etc/hosts]
I double checked and all white space is tabs-only.
I stopped and restarted syslogd and ipmon -sD. Still no logging. I am completely stumped. Know anymore ideas or troubleshootings steps I can take?
By running ipstat, I can see rejected packets and they the number of rejected packets that are logged (as reported by that command) increments over time. None are recoreded to syslog.log. Syslogd appears to be working fine though, other events are being logged via syslog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2003 11:18 PM
08-12-2003 11:18 PM
Re: ipfilter won't log via syslog
Is the "syslogd" on the "watcher" server configured to allow remote connections. I seem to remember a HP patch that disabled the function. Ensure that you don't have the "-N" option activated. Syslog uses:
syslog 514/udp # remote system logging
This port must be allow by "/etc/hosts.allow" if your using TCP Wrappers, and/or "/var/adm/inetd.sec"?
The only other suggestion I can think of is to kill entirely the "syslogd" daemon and then restart it, and see if any of this helps?
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 05:22 AM
08-13-2003 05:22 AM
Re: ipfilter won't log via syslog
Try adding this into /etc/syslog.conf:
local0.* /var/adm/syslog/syslog.log
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 05:46 AM
08-13-2003 05:46 AM
SolutionYou could try using the logger command to test the various parts of your syslog.conf, ie send unique logger messages at the different priority levels and check they appear in the right place. Also (as someone suggested earlier) the order of the lines in the syslog.conf file are important due to the way that data is filtered through them. See the man pages for syslogd and syslog(3c) for further info.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 06:32 AM
08-13-2003 06:32 AM
Re: ipfilter won't log via syslog
Thanks for the suggestions Andrew. I tried moving the @watcher line to the top of my syslog.conf file. It didn't help ipmon though.
On the other hand, I tested syslog with 'logger' from the command line and the test message was successfully logged to both the local syslog.log file and to the remote log host. Syslogd seems to be doing it's job.
So why isn't iplog logging via syslogd? When I run iplog at the command line, I do see rejected packets logged to the stdout... so it kind works. But it just won't log via syslog when I run it with -sD.
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 06:35 AM
08-13-2003 06:35 AM
Re: ipfilter won't log via syslog
Test logged message shows up in both local hosts syslog.log file and gets logged properly on the log host.
Seems like this has to be an ipmon problem?