- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ipfilter (ipf) not logging when started by ipf...
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 02:13 PM
08-08-2003 02:13 PM
ipfilter (ipf) not logging when started by ipfboot
/sbin/init.d/ipfboot looks good and ipf does successfully start (and works) after booting.
But, ipmon does not start at boot time. I want it to. And it looks like it should:
[newkf_root]$pwd
/etc/rc.config.d
[newkf_root]$grep IPMON *
ipfconf:IPMON_START=1
ipfconf:IPMON_FLAGS=-sD
But ps -ef|grep ipmon does not show it running after boot.
I can manually start ipmon and it works -- logs to stdout or to syslog if I start with -s.
Can anyone think of why it won't start at boot time? The ipfboot script that came with the depot looks reasonable.
Help greatly appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2003 02:18 PM
08-08-2003 02:18 PM
Re: ipfilter (ipf) not logging when started by ipfboot
A boot start leaves you as the programmer/admin responsible for any kind of environment the startup script needs. In /etc/rc.log there is probably a message complaining about a missing environment variable.
As a diagnostic, you can add a line to the startup script.
env > /tmp/ipfilter.env.text
This you can compare to the environment when you start it as root and you'll be able to solve this problem.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2003 02:26 PM
08-08-2003 02:26 PM
Re: ipfilter (ipf) not logging when started by ipfboot
ipmon -s
works when I start ipmon manually
But it never starts from ipfboot, whether I run that with "start" or whether it is run at boot time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2003 05:07 PM
08-08-2003 05:07 PM
Re: ipfilter (ipf) not logging when started by ipfboot
Starting IPFilter
Output from "/sbin/rc2.d/S131ipfboot start":
----------------------------
Set 0 now inactive
0 entries flushed from NAT table
0 entries flushed from NAT list
- - -
Ahhhh... I think I have the answer to my own question.
I looked in /sbin/rc2.d --
[newkf_root]$ls -l *syslogd
lrwxr-xr-x 1 root sys 20 Apr 14 2000 S220syslogd -> /sbin/init.d/syslogd
[newkf_root]$ls -l *ipfboot
lrwxr-xr-x 1 root sys 20 Aug 8 14:26 S131ipfboot -> /sbin/init.d/ipfboot
** Maybe my system is unique (it is an upgrade to HP-UX 11i and not a cold install). I found that ipfboot was starting before syslogd. Since my IPMON_FLAGS were set to log to syslogd, ipmon must have silently failed when syslogd wasn't available.
The fix was simple, I renamed S131ipfboot to S231ipfboot so it starts very soon after syslogd.
I did a reboot to test and it verified. ipmon now starts at boot and logs to syslog.
Hope this helps someone else out there! If my system is not unique, perhaps the maintainer of the HP IPF depot can change the boot/start link to be a little later in runlevel 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2003 06:02 PM
08-08-2003 06:02 PM
Re: ipfilter (ipf) not logging when started by ipfboot
In my /etc/syslog.conf file I have both
*.info
and
local0.info
and I touched fw.log
and hup'd syslog
... ipmon will dump packets to stdout if started with no parameters, but I can't get it to log via syslog and I'd really like to get that working so I can log to a log host already used by other hosts.
Ideas?