niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » OpenBSD
pflogd logs nothing
Post new topic   Reply to topic Page 1 of 1 [8 Posts] View previous topic :: View next topic
Author Message
Marco S Hyman
*nix forums beginner


Joined: 04 Mar 2005
Posts: 36

PostPosted: Wed Mar 16, 2005 1:17 am    Post subject: Re: pflogd logs nothing Reply with quote

Gabriele Zucchetta <zucchi@xxx.it> writes:

Quote:
but the documentation (pf faq) don't speek about this
....
It's a scarsity in the documentation. For me the loggin is

The FAQ is *not* the documentation. The man page is.
Read pf.conf(5).

// marc
Back to top
Marco S Hyman
*nix forums beginner


Joined: 04 Mar 2005
Posts: 36

PostPosted: Tue Mar 15, 2005 11:17 pm    Post subject: Re: pflogd logs nothing Reply with quote

Gabriele Zucchetta <zucchi@xxx.it> writes:

Quote:
set loginterface $ext_if

From the pf.conf(5):

set loginterface
Enable collection of packet and byte count statistics for the given
interface. These statistics can be viewed using

# pfctl -s info

It has nothing to do with the log file.

Quote:
Do you have any rules in pf.conf cosisting:
pass log ......
or
block log.....
I'm sorry, I have not the log rules in my pf.conf
but the documentation (pf faq) don't speek about this
features.

from pf.conf(5):

log In addition to the action specified, a log message is generated.
All packets for that connection are logged, unless the keep state,
modulate state or synproxy state options are specified, in which
case only the packet that establishes the state is logged. (See
keep state, modulate state and synproxy state below). The logged
packets are sent to the pflog(4) interface. This interface is mon-
itored by the pflogd(Cool logging daemon, which dumps the logged
packets to the file /var/log/pflog in pcap(3) binary format.

and in the pf.conf(5) examples:

# block and log everything by default
block return log on $ext_if all
Quote:
^^^

// marc
Back to top
lost
*nix forums beginner


Joined: 12 Mar 2005
Posts: 15

PostPosted: Tue Mar 15, 2005 10:50 pm    Post subject: Re: pflogd logs nothing Reply with quote

Quote:
It's a scarsity in the documentation. For me the loggin is
a priority and it is a first step towards security, then is
important upgrade this part of pf documentation.

Better choose your friends.

man pf.conf is your first friend.

===
log In addition to the action specified, a log message is generated.
All packets for that connection are logged, unless the keep
state,
modulate state or synproxy state options are specified, in which
case only the packet that establishes the state is logged. (See
keep state, modulate state and synproxy state below). The logged
packets are sent to the pflog(4) interface. This interface is
mon-
itored by the pflogd(Cool logging daemon, which dumps the logged
packets to the file /var/log/pflog in pcap(3) binary format.
===

--
Back to top
Gabriele Zucchetta
*nix forums beginner


Joined: 15 Mar 2005
Posts: 3

PostPosted: Tue Mar 15, 2005 10:05 pm    Post subject: Re: pflogd logs nothing Reply with quote

On Tue, 15 Mar 2005 11:50:18 -0600, John McGrail wrote:
..
Quote:
I'm sorry, I have not the log rules in my pf.conf
but the documentation (pf faq) don't speek about this
features.

yes it does.
It's a scarsity in the documentation. For me the loggin is

a priority and it is a first step towards security, then is
important upgrade this part of pf documentation.

zucchi
Back to top
John McGrail
*nix forums beginner


Joined: 23 Feb 2005
Posts: 22

PostPosted: Tue Mar 15, 2005 4:50 pm    Post subject: Re: pflogd logs nothing Reply with quote

Quote:
Do you have any rules in pf.conf cosisting:
pass log ......
or
block log.....
I'm sorry, I have not the log rules in my pf.conf
but the documentation (pf faq) don't speek about this
features.

yes it does.

--
ratfood@food.skaterat.net
All foods should be removed to reply
Back to top
Gabriele Zucchetta
*nix forums beginner


Joined: 15 Mar 2005
Posts: 3

PostPosted: Tue Mar 15, 2005 4:41 pm    Post subject: Re: pflogd logs nothing Reply with quote

On Tue, 15 Mar 2005 18:15:53 +0100, lost wrote:

Quote:
# options
set block-policy return
set loginterface $ext_if

Do you have any rules in pf.conf cosisting:
pass log ......
or
block log.....
I'm sorry, I have not the log rules in my pf.conf

but the documentation (pf faq) don't speek about this
features.

zucchi
Back to top
lost
*nix forums beginner


Joined: 12 Mar 2005
Posts: 15

PostPosted: Tue Mar 15, 2005 4:15 pm    Post subject: Re: pflogd logs nothing Reply with quote

Quote:
# options
set block-policy return
set loginterface $ext_if

Do you have any rules in pf.conf cosisting:

pass log ......
or
block log.....
?

man pf.conf

--
Back to top
Gabriele Zucchetta
*nix forums beginner


Joined: 15 Mar 2005
Posts: 3

PostPosted: Tue Mar 15, 2005 3:53 pm    Post subject: pflogd logs nothing Reply with quote

It's strange, my server nat works fine, but if I try to
view log file (/var/log/pflog) whit tcpdump I obtain
a empty string. The command is (user root):

tcpdump -n -e -ttt -r /var/log/pflog

The pflogd is up (/var/run/pflogd.pid have a
number) but the pflog file is not update:

rw------- 1 root wheel 24 Feb 11 16:15 /var/log/pflog
^^^^^^^^^^^^

Today is: Tue Mar 15 17:49:48 CET 2005

Why this problem, why nothing is loged?

My OpenBSD is 3.6 and in pf.conf I have:

# options
set block-policy return
set loginterface $ext_if

tanks
zucchi
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [8 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 12:45 pm | All times are GMT
navigation Forum index » *nix » BSD » OpenBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts goxall logs ranjithno1@gmail.com AIX 0 Thu Jul 20, 2006 6:48 pm
No new posts Help me Interpret these Logs DB_BOY AIX 1 Thu Jul 20, 2006 8:45 am
No new posts How to rotate logs in Squid Mehmet, Levent (Accenture Squid 13 Wed Jul 19, 2006 3:46 pm
No new posts Postfix 2.0.13 logs Paolo Biancolli Postfix 0 Wed Jul 12, 2006 7:38 am
No new posts logs Dave Henderson Apache 3 Fri Jul 07, 2006 5:29 pm

Credit Cards | Mortgages | Mortgages | Credit Counseling | Credit Card Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1837s ][ Queries: 20 (0.0920s) ][ GZIP on - Debug on ]