Make -log_ipfw_denied active by default with -verbose.
Discussed with: phk
This commit is contained in:
parent
3843533e18
commit
c0956cf876
@ -466,6 +466,8 @@ The range will be cleared for all rules on startup.
|
||||
Log when a packet can not be re-injected because an
|
||||
.Xr ipfw 8
|
||||
rule blocks it.
|
||||
This is the default with
|
||||
.Fl verbose .
|
||||
.El
|
||||
.Sh RUNNING NATD
|
||||
The following steps are necessary before attempting to run
|
||||
|
@ -161,7 +161,7 @@ int main (int argc, char** argv)
|
||||
dynamicMode = 0;
|
||||
logDropped = 0;
|
||||
logFacility = LOG_DAEMON;
|
||||
logIpfwDenied = 0;
|
||||
logIpfwDenied = -1;
|
||||
/*
|
||||
* Mark packet buffer empty.
|
||||
*/
|
||||
@ -169,6 +169,11 @@ int main (int argc, char** argv)
|
||||
packetDirection = DONT_KNOW;
|
||||
|
||||
ParseArgs (argc, argv);
|
||||
/*
|
||||
* Log ipfw(8) denied packets by default in verbose mode.
|
||||
*/
|
||||
if (logIpfwDenied == -1)
|
||||
logIpfwDenied = verbose;
|
||||
/*
|
||||
* Open syslog channel.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user