log
Hi
I am wondering when you want to log packets and u use the following:
-A INPUT -j LOG
-A OUTPUT -j LOG
will it log only for the default time period or will it log all packets as they come in and out untill you # it out?
Regards
__________________________________________________________________________
http://www.webmail.co.za/dialup Webmail ISP - Cool Connection, Cool Price
Quoted 1 line · IT Clown
will it log only for the default time period
What do you mean by that? None of the rules that you add into a table will "expire" - you can rate limit using the appropriate rule.
Quoted 2 lines
or will it log
all packets as they come in and out untill you # it out?
Every packet that gets to this rule (ie: is not rejected or allowed before this rule) will get logged. Typically, you would rate-limit the log message as follows:
iptables -A FORWARD --protocol tcp -o ppp+ --destination-port 2766 -m limit --limit 10/hour --limit-burst 5 -j LOG --log-level warning --log-prefix "Deadhat " iptables -A FORWARD --protocol tcp -o ppp+ --destination-port 2766 -j DROP